What do you guys tell yourself when you catch your self in a snowball of compulsive thoughts about a girl? how do you tell yourself "if she wants to go out with her friends instead of hanging out" this is normal or whatever.

I'm always able to keep my emotions in check on the outside but in my head I'm fighting this battle telling myself to chill and or to just overthink every single detail. how not to be clingy?