void () { myFixture.configureByText("a.java", """ import java.util.function.Consumer; class A { interface Context<T> { } static <A> Context<A> withProvider(Consumer<A> consumer) { return null; } static <T> Context<T> withContext(Class<T> clazz, Context<T> context) { return null; } public static void testInference() { withContext(String.class, withProvider(<caret>)); } }"""); assertEquals("<html>Consumer&lt;String&gt; consumer</html>", parameterPresentation(-1)); }