Intellectual defences are in general a way to do this - they are ways to prevent destabilizing information entering the mental architecture.

Are personality disorders instances where defences are too extreme?