void (final @NotNull Project project, final @NotNull ProblemDescriptor descriptor) { XmlTag tag = (XmlTag)descriptor.getPsiElement(); XmlAttribute attribute = tag.setAttribute(myAttrName, myNamespace.equals(tag.getNamespace()) ? "" : myNamespace, myAttrValue); VirtualFile virtualFile = tag.getContainingFile().getVirtualFile(); if (virtualFile != null) { PsiNavigationSupport.getInstance().createNavigatable(project, virtualFile, attribute.getValueElement().getTextRange().getStartOffset() + 1).navigate(true); } }