interface I { void foo(); } class IImpl implements I { public void foo(){} public void get() {} { I i = () -> {}; } }