@Override
    @Nullable
    public String getErrorMessage(Editor editor, PsiFile file, XmlAttribute context) {
        if (!editor.getSelectionModel().hasSelection()) {
            return XPathBundle.message("notification.content.please.select.code.that.should.be.extracted");
        }
        return null;
    }
@Override
    @Nullable
    public String getErrorMessage(Editor editor, PsiFile file, XmlAttribute context)