Context: Y has just told X that he/she is thinking of buying a flat in New York.

X: Have you been thinking about buying a flat in New York, for a long time?
Y: It only just occurred to me.