Therapy can help one realize the defense mechanisms used, sometimes unconsciously. Patients may then learn healthier ways of coping with difficult situations.