Some thoughts that we never want is related to situations we have gone through , most of the time I get triggered from the past even though everything has healed. You need not distract yourself. Think keep thinking and keep on thinking till those thoughts end itself in your mind. You need to embrace your thoughts cuz that's what make you and your nature. Face your fears and then jot down all those unwanted thoughts and simply tear them or burn them but accept & let go.