There are basically two strategies which is often employed.
Distraction from the thoughts or Challenging the thoughts.
Distraction is pretty self-explanatory, it is pretty much trying to "switch the subject" mentally if the thought ever comes up. It is not really that effective, but it is a very common self-strategy people use to simply move on, and over time, it just eventually fades away before you realise it.
The other is to recognize these thoughts and challenge them. So when it pops up, just laugh at yourself, "Oh, get a grip… it’s nothing to do with me, and its forgotten". Because if it remains unresolved, it can poison your mood, making you angry or annoyed, and if some one comes along and annoys you, you might end up saying or doing the wrong things towards them which you don't mean to do.
Bookmarks