pass through mind
pass through(one's) mind
To occur to or be thought of by one; to become an idea in one's mind. Take time to form your response to the interviewer—don't just blurt out the first thing that passes through your mind. I haven't thought of my high school English teacher in years, so I'm not sure why she passed through my mind today.
pass through someone's mindand cross someone's mind
Fig. [for a thought] to come to mind briefly; [for an idea] to occur to someone. Let me tell you what just crossed my mind. As you were speaking, something passed through my mind that I'd like to discuss.