void () { myFixture.addClass("@java.lang.annotation.Target(java.lang.annotation.ElementType.TYPE_USE) @interface AssertTrue {}"); myFixture.configureByText("test.java", """ import java.util.List; class IntellijBugTest { final List<?> list = new @AssertTrue Array<caret>List<Object>(); }"""); importClass(); myFixture.checkResult( """ import java.util.ArrayList; import java.util.List; class IntellijBugTest { final List<?> list = new @AssertTrue ArrayList<Object>(); }"""); }