void () { myFixture.addClass(""" @FunctionalInterface public interface MyFactoryEmpty { Foo create(); } """); myFixture.addClass(""" @FunctionalInterface public interface MyFactoryInt { Foo create(int value); } """); Collection<? extends PsiType> suggestedTypes = suggestTypes("class Foo { Foo() {} Foo(int value) {} }", "Foo::new"); checkWithExpected(suggestedTypes, "MyFactoryEmpty", "MyFactoryInt", "java.lang.Runnable", "java.util.concurrent.Callable<Foo>", "java.util.function.Function<java.lang.Integer,Foo>", "java.util.function.IntConsumer", "java.util.function.IntFunction<Foo>", "java.util.function.Supplier<Foo>"); }