Well that is what your superego is for.
Id, which is a chemical soup
Ego, first responder
Super ego, second responder
The most intrusive thoughts are a taste of ID, sudden ego repressions, super Ego reminding what you repressed. Bring that back to the Ego and have a laugh.