Answer:
intellectualization
Step-by-step explanation:
Intellectualization is a copying mechanism during which a person focuses on practical and rational reasoning is used in order to avoid emotional stress. During a reasoning person is blocking emotional stresses and feelings that might hurt.
In the example in the question, we would use the energy to see how rationally to cope with the situation, trying to ignore the pain we feel because of sudden departure, and possible stab, by the friend who left us in the bad situation and without any previous notice.