Choose a new healthy behavior to shift into when the urge hits. A glass of water, for instance. Retrain the body AND the mind that way, while also amending the behavior and changing your health. Powerful.
Too often we try to hit something head on, that is better turned sideways with adroit action.
The addiction is stupid. People are smart. Let the smart person run the show, not the stupidly-limited addiction. YOU are not dumb-- the addiction's behavior pattern IS. You are not the addiction, even if the addiction lies to you and insists that it is yourself. Addictions are not only stupid-- they are liars. :~)