R.J.
Yes.
I hyperfocus on things, and I also get panic attacks. Two wildly different things, both of which cause insomnia, and then even when everything is FINE I'm ADHD-c... So my mind will start rolodexing/running a mile a minute/flitting from thing to thing to thing.
For the hyperfocus: I have to distract myself with something else.
For the panic attacks I have to calm down (easier said than done!)
For the rolodexing, I have to concentrate (without tripping into hyperfocus!)