void (@NotNull PsiElement psiElement, @NotNull AnnotationHolder holder) { if (psiElement instanceof XmlTag) { final DomElement element = DomManager.getDomManager(psiElement.getProject()).getDomElement((XmlTag)psiElement); if (element instanceof MavenDomDependency dependency) { if (element.getParentOfType(MavenDomPlugin.class, true) != null) return; if (isDependencyManagementSection(dependency)) { annotateDependencyUsages(dependency, holder); } else { annotateManagedDependency(dependency, holder); } } else if (element instanceof MavenDomParent) { annotateMavenDomParent((MavenDomParent)element, holder); } else if (element instanceof MavenDomProjectModel) { annotateMavenDomProjectChildren((MavenDomProjectModel)element, holder); } else if (element instanceof MavenDomPlugin) { annotateMavenDomPlugin((MavenDomPlugin)element, holder); } } }