void () { myFixture.addClass( (""" import java.lang.annotation.*; @Target(ElementType.TYPE_USE) @interface TA { }\ """).stripIndent().trim()); myFixture.configureByText("a.java", (""" class Test { java.u<caret>til.@TA Collection<@TA String> c; }\ """).stripIndent() .trim()); reimportClass(); myFixture.checkResult( (""" import java.util.Collection; class Test { <caret>@TA Collection<@TA String> c; }\ """).stripIndent() .trim()); }