interface Functional { void run(); } class A { void foo() { Functional f = () -> {}; } }