@Override
  public @Nullable ContentRevision createCurrentFileContent(@NotNull VirtualFile file) {
    if (file.isDirectory()) return null;
    if (GitRepositoryManager.getInstance(myProject).getRepositoryForFile(file) == null) return null;

    VcsRevisionNumber revisionNumber = getCurrentRevision(file);
    FilePath filePath = VcsUtil.getLastCommitPath(myProject, VcsUtil.getFilePath(file));
    return GitContentRevision.createRevision(filePath, revisionNumber, myProject, file.getCharset());
  }
@Override
  public @Nullable ContentRevision createCurrentFileContent(@NotNull VirtualFile file)