Projection
The unconscious transfer of one's own qualities onto external people or situations.
Projection occurs when unconscious contents — especially Shadow material — are perceived as existing in others rather than oneself. We project onto others what we cannot see in ourselves. This explains why we often have intense reactions to people who carry qualities we've repressed: we hate in them what we refuse to acknowledge in ourselves. Withdrawal of projections is essential to psychological maturity. In film, projection is often literalized through doppelgängers, hallucinations, or characters who turn out to be aspects of the protagonist's psyche.