Napadla ho skvelá myšlienka.
A good idea occurred to him.