private static byte @Nullable [] loadRevisionCatchingErrors(@NotNull Project project,
                                                              @NotNull VirtualFile root,
                                                              @NotNull FilePath path,
                                                              int stageNum) throws VcsException {
    try {
      return loadRevisionContent(project, root, path, stageNum);
    }
    catch (VcsException e) {
      String m = e.getMessage().trim();
      if (m.startsWith("fatal: ambiguous argument ")
          || (m.startsWith("fatal: Path '") && m.contains("' exists on disk, but not in '"))
          || m.contains("is in the index, but not at stage ")
          || m.contains("bad revision")
          || m.startsWith("fatal: Not a valid object name")) {
        return null; // assume missing side of 'Deleted-Modified', 'Deleted-Deleted', 'Added-Added' conflicts
      }
      else {
        throw e;
      }
    }
  }
private static byte @Nullable [] loadRevisionCatchingErrors(@NotNull Project project,
                                                              @NotNull VirtualFile root,
                                                              @NotNull FilePath path,
                                                              int stageNum)