There’s no simple answer and it take practice. Sometimes it can be about catching the thought, saying “stop” firmly out loud to yourself and then examining the thought to see what actual, objective evidence there is behind any assumptions you’re making.