How do you deal with rumination?

Constantly getting stuck on the same ideas all the time is exhausting. There are always so many thoughts in my head. I used to think it was anxiety, but after getting diagnosed I think a lot of it stems from autism.

Especially at university/work, how do you deal with it?