boolean (ExternalAnnotator annotator, PsiFile file) { return annotator instanceof XMLExternalAnnotator && file instanceof XmlFile && ReadAction.compute(() -> AntDomFileDescription.isAntFile((XmlFile)file)); }