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