@FunctionalInterface interface I { T foo(T t); } class Foo { void test() { I l = String::toLowerCase; } }