void () { doTest(""" void test() { interface Consumer<T>{ public void consume(T t); } class Test2{ public void test(Consumer<String> a) { } } new Test2().test((<selection>var a</selection>)-> System.out.println(a)); }""", "String", "String"); }