Полный русско-английский словарь
To think (of), to hit (on), to take into one's head, to come to mind, to occur (to) w come to mind
приходить в голову