import java.io.IOException; class Test { { query(() -> { process(); }); } public static void process() throws IOException {} private void query(B var2) { System.out.println(var2); } private void query( A rch) { System.out.println(rch); } interface A { void m() throws IOException; } interface B { T n() throws IOException; } }