Automatic processing of intrusive thoughts