void (DomElementAnnotationHolder holder, DomElement domElement, Nls.Capitalization capitalization, @NonNls @Nullable String resourceKey, boolean required) { if (resourceKey == null) return; final PropertiesFile bundleFile = DescriptorI18nUtil.findBundlePropertiesFile(domElement); if (bundleFile == null) return; final Property property = ObjectUtils.tryCast(bundleFile.findPropertyByKey(resourceKey), Property.class); if (property == null) { if (required) { holder.createProblem(domElement, DevKitI18nBundle.message("inspections.plugin.xml.capitalization.missing.resource.bundle.key", resourceKey)); } } else { highlightCapitalization(holder, domElement, property.getValue(), capitalization, property); } }