void (@NotNull PsiElement host, @NotNull String message) { final ASTNode node = host.getNode(); assert node != null; if (host instanceof XmlAttribute) { final ASTNode nameNode = XmlChildRole.ATTRIBUTE_NAME_FINDER.findChild(node); if (nameNode != null) { createAnnotation(nameNode, message); } } else if (host instanceof XmlTag) { final ASTNode start = XmlChildRole.START_TAG_NAME_FINDER.findChild(node); if (start != null) { createAnnotation(start, message); } final ASTNode end = XmlChildRole.CLOSING_TAG_NAME_FINDER.findChild(node); if (end != null) { createAnnotation(end, message); } } else { createAnnotation(node, message); } }