Elementary graph theory and combinatorics are somewhat outliers in this regard, as there is not so much "theory" per se that one has to build on or work with. Tim Gowers's "Two Cultures" essay is an interesting read on this topic: https://www.dpmms.cam.ac.uk/~wtg10/2cultures.pdf
[1] http://www.cs.virginia.edu/~robins/YouAndYourResearch.html
https://en.wikipedia.org/wiki/August_Kekul%C3%A9#Kekul%C3%A9...
Musicians commonly report waking up with song ideas fully formed. We shouldn't be too surprised, really; the complex sentences out of our mouths (more often than not) arrive without any conscious thinking. Jung said that our egos are like planets orbiting a Sun they're unaware of.
And then within a few minutes I quickly forget the music. And there’s no way to remember it because it’s not anything that I can just find and listen to.