void (@NotNull XmlTag tag) { if (checkDeprecated(tag.getDescriptor(), pattern)) { ASTNode nameNode = XmlChildRole.START_TAG_NAME_FINDER.findChild(tag.getNode()); if (nameNode != null) { holder.registerProblem(nameNode.getPsi(), XmlAnalysisBundle.message("xml.inspections.the.tag.is.marked.as.deprecated"), ProblemHighlightType.LIKE_DEPRECATED); } } }