void () { myFixture.addClass(""" @FunctionalInterface public interface MyFunc { void accept(Foo foo, int value); } """); Collection<? extends PsiType> suggestedTypes = suggestTypes("class Foo { void foo(int i) {}}", "Foo::foo"); checkWithExpected(suggestedTypes, "MyFunc", "java.util.function.BiConsumer<Foo,java.lang.Integer>", "java.util.function.ObjIntConsumer<Foo>"); }