class Test { interface I { String m(); } static String foo() { return null; } public I get() { return Test::foo; } }