public class Foo { void m() { foo(new Runnable() {public void run()}.var); } void foo(Runnable r) {} }