private static @Nullable BaseContent createForHijacked(@NotNull Project project, @NotNull VirtualFile file) {
    AbstractVcs vcs = ProjectLevelVcsManager.getInstance(project).getVcsFor(file);
    if (vcs == null) return null;
    DiffProvider diffProvider = vcs.getDiffProvider();
    if (diffProvider == null) return null;

    VcsRevisionNumber currentRevision = diffProvider.getCurrentRevision(file);
    if (currentRevision == null) return null;
    return new HijackedBaseContent(project, diffProvider, file, currentRevision);
  }
private static @Nullable BaseContent createForHijacked(@NotNull Project project, @NotNull VirtualFile file)