Hi Mike,
What I do is carry thought record photocopies in my wallet. When I get an annoying thought, I’d go to a private place, fill in the record. With time, I became better at coping ,and could cope with the thought without writing it down. Also, if you work with someone, they’ll help find a a pattern.
One great suggestion was to write a “coping card”, so I could deal with the nuisance thought, and have a recurring “rebuttal” available, in my wallet.