interface A { void method(); } interface B> { void method(T arg); } interface C { void method(B> arg); } class Test { public static void test(C c) { c.method(arg -> arg.method( )); } }