@Override
    public String getErrorMessage(Editor editor, PsiFile file, XmlAttribute context) {
        if (context != null) {
            if (XsltSupport.isPatternAttribute(context)) {
                return XPathBundle.message("notification.content.match.patterns.may.not.contain.variable.references");
            }
            if (XsltSupport.isXPathAttribute(context) && editor.getSelectionModel().hasSelection()) {
                return XPathBundle.message("notification.content.please.select.complete.xpath.expression.to.extract");
            }
        }
        return super.getErrorMessage(editor, file, context);
    }
@Override
    public String getErrorMessage(Editor editor, PsiFile file, XmlAttribute context)