public @Nullable DomFileDescription<?> findDescription(XmlFile file) {
    Module module = ModuleUtilCore.findModuleForFile(file);
    Condition<DomFileDescription<?>> condition = d -> d.isMyFile(file, module);
    String rootTagLocalName = DomService.getInstance().getXmlFileHeader(file).getRootTagLocalName();
    DomFileDescription<?> description = ContainerUtil.find(getFileDescriptions(rootTagLocalName), condition);
    return description != null ? description : ContainerUtil.find(getAcceptingOtherRootTagNameDescriptions(), condition);
  }
public @Nullable DomFileDescription<?> findDescription(XmlFile file)