There’s a reason or reasons why you can’t have him. Weigh those reasons and think about them. Think about the compromises, sacrifices, and pain you would have to go through to be with him. It’s best to think them through every day and notice the feeling that follows. That should encourage you to stop thinking about this person and it will also do wonders for your self-worth.