void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { PsiElement element = descriptor.getPsiElement(); if (PsiTreeUtil.getParentOfType(element, XmlTag.class) == null) return; myProvider.suppressForTag(element, myId); }