public static boolean isAntFile(final XmlFile xmlFile) {
    final XmlDocument document = xmlFile.getDocument();
    if (document != null) {
      final XmlTag tag = document.getRootTag();
      final VirtualFile vFile = xmlFile.getOriginalFile().getVirtualFile();
      if (tag != null && ROOT_TAG_NAME.equals(tag.getName()) && tag.getContext() instanceof XmlDocument) {
        if (tag.getAttributeValue("name") != null && tag.getAttributeValue("default") != null
            && vFile != null && ForcedAntFileAttribute.mayBeAntFile(vFile)) {
          return true;
        }
      }
      if (vFile != null && ForcedAntFileAttribute.isAntFile(vFile)) {
        return true;
      }
    }
    return false;
  }
public static boolean isAntFile(final XmlFile xmlFile)