static @Nullable DomFileDescription<?> findFileDescription(XmlFile file) {
    DomFileDescription<?> mockDescription = file.getUserData(DomManagerImpl.MOCK_DESCRIPTION);
    if (mockDescription != null) return mockDescription;

    Project project = file.getProject();
    XmlFile originalFile = (XmlFile)file.getOriginalFile();
    DomManagerImpl domManager = DomManagerImpl.getDomManager(project);
    if (!originalFile.equals(file)) {
      DomFileElementImpl<?> element = domManager.getFileElement(originalFile);
      if (IdempotenceChecker.isLoggingEnabled()) {
        IdempotenceChecker.logTrace("Copy DOM from original file: " + element);
      }
      return element == null ? null : element.getFileDescription();
    }

    return DomApplicationComponent.getInstance().findDescription(file);
  }
static @Nullable DomFileDescription<?> findFileDescription(XmlFile file)