void () { TemplateManagerImpl.setTemplateTesting(myFixture.getTestRootDisposable()); myFixture.configureByText("a.java", "\ninterface A {}\n@SuppressWarnings({A.CON<caret>ST})\nclass Test {}\n"); myFixture.launchAction(myFixture.findSingleIntention("Create constant field")); myFixture.checkResult(""" interface A { <selection>String</selection> CONST = ; } @SuppressWarnings({A.CONST}) class Test {} """); }