“Microlensing” : Gravitational lenses
In principle, this method could even see Earth-mass planets. You have to have a huge and long-time monitoring program with high time resolution and good photometric precision.
The downside is that you will only detect the planet once, and can’t learn anything more about it. One tentative detection has been claimed (but how to confirm it?).