void () { myFixture.addClass(""" package sample; interface Lambda0 { void run(); static <T> Lambda0 lambda() { return () -> {}; } } """); myFixture.addClass(""" package sample; interface Lambda1 extends Lambda0 { static <E1 extends Exception> Lambda1 lambda() { return ()->{}; } } """); doTest(); }