class MyTest { interface I { X m(); } static T bar() {return null;} static { I i = MyTest::bar; } }