boolean (@NotNull final Project project, final Editor editor, final PsiFile file) { //if (!(file instanceof XmlFile)) { // return false; //} //final XmlTag xmlTag = PsiTreeUtil.getParentOfType(file.findElementAt(editor.getCaretModel().getOffset()), XmlTag.class); //if (xmlTag == null) { // return false; //} //final AntDomElement antDomElement = AntSupport.getAntDomElement(xmlTag); //if (antDomElement == null) { // return false; //} return true; }