It depends on the why
behind the distraction.
If I'm bored, I follow the thread of my thinking about it until I identify what I care about
If I'm anxious/afraid, I recenter on why I chose to do it and why it matters
If I'm pissed off or resentful for having to do something, I try to find the part that I have a choice about, and if I can't find that choice, I remind myself I have the choice to leave it
If I'm tired or restless, I rest or stretch
If I'm hyped up or restless, I do pushups, or go outside, or dance