void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { PsiElement psiElement = descriptor.getPsiElement(); if (psiElement instanceof XmlTag) { ((XmlTag)psiElement).getValue().setText(finalResolvedValue); } else if (psiElement instanceof XmlText) { ((XmlText)psiElement).setValue(finalResolvedValue); } }