void (@NotNull Project project, XmlTag xml, PropertiesFile propertiesFile) { String displayName = xml.getAttributeValue("displayName"); if (displayName == null) return; xml.setAttribute("displayName", null); String shortName = xml.getAttributeValue("shortName"); if (shortName == null) { String implementationClass = xml.getAttributeValue("implementationClass"); if (implementationClass == null) { return; } shortName = InspectionProfileEntry.getShortName(StringUtil.getShortName(implementationClass)); } @NonNls String key = "inspection." + StringUtil.join(NameUtilCore.splitNameIntoWords(shortName), s -> StringUtil.decapitalize(s), ".") + ".display.name"; xml.setAttribute("key", key); XmlTag rootTag = ((XmlFile)xml.getContainingFile()).getRootTag(); XmlTag resourceBundle = rootTag != null ? rootTag.findFirstSubTag("resource-bundle") : null; String bundleQName = getBundleQName(project, propertiesFile); if (resourceBundle == null || !bundleQName.equals(resourceBundle.getValue().getTrimmedText())) { xml.setAttribute("bundle", bundleQName); } JavaI18nUtil.DEFAULT_PROPERTY_CREATION_HANDLER.createProperty(project, Collections.singletonList(propertiesFile), key, StringUtil.unescapeXmlEntities(displayName), new UExpression[0]); }