This is how the cognitive therapy method works for intrusive thoughts.