it occurs to you
I'm sure you can think of something.
Como se te ocurre molestarme a estas horas.
How could you think of bothering me at this hour?
— Una historia china de fantasmas (1987)
Ni se te ocurre comerte mi chocolate.
Don’t even think about eating my chocolate.
Pero ¿cómo se te ocurre decirle eso?
But how could you even think of saying that to them?
— Volver (2006)
Cuatro años de carrera, ¿y sólo se te ocurre eso?
Four years of university, and that's all you can come up with?
— Mystic River (2003)