interface FooImpl extends Foo {} class AAA { void m() { FooImpl l = () -> {}; } }