i had trouble falling asleep for about the first 35 years of my life. then i hit on a technique i call “scenarios.” i have various made-up fantasy settings, like an island nation surrounded by a sea of mud, and i make up stories about its inhabitants, building on whatever stories i made up last time. this seems to short-circuit the problem i had earlier, where i could not get my brain to stop racing, worrying about various real-life issues.
i have always considered my technique to be so weird and awkward that i have never discussed it with anyone. but now i see, from reading the comments here, that other people have similar techniques. who knew.