void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { PsiFile file = descriptor.getPsiElement().getContainingFile(); IdeaPlugin root = DescriptorUtil.getIdeaPlugin((XmlFile)file); if (root == null) return; XmlTag rootTag = root.getXmlTag(); if (rootTag == null) return; XmlTag after = getLastSubTag(rootTag, root.getId(), root.getDescription(), root.getVersion(), root.getName()); XmlTag missingTag = rootTag.createChildTag(myTagName, rootTag.getNamespace(), myTagValue, false); XmlTag addedTag; if (after == null) { addedTag = rootTag.addSubTag(missingTag, true); } else { addedTag = (XmlTag)rootTag.addAfter(missingTag, after); } if (StringUtil.isEmpty(myTagValue) && !IntentionPreviewUtils.isPreviewElement(descriptor.getPsiElement())) { int valueStartOffset = addedTag.getValue().getTextRange().getStartOffset(); NavigatableAdapter.navigate(project, file.getVirtualFile(), valueStartOffset, true); } }