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