void () { setupPlatformLibraries202(); myFixture.addClass("package foo.bar; public class Inspection1 extends com.intellij.codeInspection.LocalInspectionTool { }"); myFixture.addFileToProject("messages/FooBundle.properties", ""); myFixture.configureByText("plugin.xml", """ <idea-plugin> <resource-bundle>messages.FooBundle</resource-bundle> <extensions defaultExtensionNs="com.intellij"> <localInspection hasStaticDescription="true" shortName="bar" displayName="Foo<caret> bar" groupName="Group" enabledByDefault="true" implementationClass="foo.bar.Inspection1"/> </extension> </idea-plugin>"""); IntentionAction action = myFixture.getAvailableIntention(DevKitI18nBundle.message("inspections.plugin.xml.i18n.inspection.tag.family.name", "displayName")); assertNotNull(action); myFixture.launchAction(action); myFixture.checkResult(""" <idea-plugin> <resource-bundle>messages.FooBundle</resource-bundle> <extensions defaultExtensionNs="com.intellij"> <localInspection hasStaticDescription="true" shortName="bar" groupName="Group" enabledByDefault="true" implementationClass="foo.bar.Inspection1" key="inspection.bar.display.name"/> </extension> </idea-plugin>"""); }