The correct answer is cognitive-behavioral therapy.
This type of therapy is used to change the way you think and behave - and thus, hopefully, your problems will be solved. It is usually used to treat patients with severe cases of anxiety and depression, but other mental problems as well.