boolean (final PsiFile file) { if (file instanceof XmlFile xmlFile) { final XmlDocument document = xmlFile.getDocument(); if (document != null) { final XmlTag tag = document.getRootTag(); if (tag != null && "project".equals(tag.getName()) && tag.getContext() instanceof XmlDocument) { if (tag.getAttributeValue("default") != null) { return true; } VirtualFile vFile = xmlFile.getOriginalFile().getVirtualFile(); if (vFile != null && vFile.getUserData(ANT_FILE_SIGN) != null) { return true; } } } } return false; }