念頭に浮かぶ
an idea that flashed into one's mind
考えが浮かんだ
Various thoughts pass through my mind.
of ideas, to come up and then pass through from one's mind
The idea rose to mind [in my mind].
A good idea rushed into my mind.
to suggest an idea to one's mind―remind one of something