void () { ((AdvancedSettingsImpl)AdvancedSettings.getInstance()).setSetting("java.completion.qualifier.as.argument", true, getTestRootDisposable()); myFixture.configureByText("Test.java", """ package org.test; import java.util.ArrayList; import java.util.List; public abstract class Test { private static void test2(List<? extends CharSequence> l) { List<String> t = new ArrayList<>(); t.testPrint<caret> } public static <T extends CharSequence> void testPrint(List<T> l) {} } """); myFixture.complete(CompletionType.BASIC, 3); myFixture.type('\n'); myFixture.checkResult(""" package org.test; import java.util.ArrayList; import java.util.List; public abstract class Test { private static void test2(List<? extends CharSequence> l) { List<String> t = new ArrayList<>(); testPrint(t); } public static <T extends CharSequence> void testPrint(List<T> l) {} } """); }