void (ContextProvider contextProvider, PrefixedName prefixedName, XPathNodeTest nodeTest, boolean attribute) { final QName qName = contextProvider.getQName(prefixedName, nodeTest); final String name; if (qName != null) { final String pattern; if (!"".equals(qName.getNamespaceURI())) { pattern = "''{0}'' ({1})"; } else { pattern = "''{0}''"; } name = MessageFormat.format(pattern, qName.getLocalPart(), qName.getNamespaceURI()); } else { name = MessageFormat.format("''{0}''", prefixedName.getLocalName()); } final LocalQuickFix[] fixes = contextProvider.getQuickFixFactory().createUnknownNodeTestFixes(nodeTest); addProblem(myManager.createProblemDescriptor(nodeTest, XPathBundle.message(attribute ? "inspection.message.html.unknown.attribute.name.html" : "inspection.message.html.unknown.element.name.html", name), myOnTheFly, fixes, ProblemHighlightType.GENERIC_ERROR_OR_WARNING)); }