It all depends on the type of problem.
Usually I can't help but focus on a problem I've been having if it is practical (people, problems with self), I view it is kind of emotional cutting, there is a kind of sense of satisfaction in it, yet a strong sense of misery that goes a long with it (both bring a sense of motivation), it may be problem specific though (jealousy for the past years). I think physical cutting is stupid though, because all I am doing is turning misery into motivation.
But there comes a time were the feelings get stale and it just tires me out, like that kind of depression not caused by anything specific but you just feel too tired to sleep, I hate that kind of depression, it is like you cannot escape, I just try to find something to put my focus on.
Then there is stress, similar to the above but usually it is revolving around future events. I will try to block out my thoughts of the future and the past, and focus entirely on what is happening in the present moment, this is an official method, there is books about ways of thinking like this.