I mean, it's just not doing something. Not doing is the baseline, then ideas come. Are you a man? You should have willpower and self-control.
Treat it like meditation. When you get the urge, because you will, just notice it and release the thought. Don't act upon it. Avoid your triggers and...