@Override
  public CharSequence provideContent(@NotNull Project project, @NotNull String path, @Nullable CommitContext commitContext) {
    if (commitContext == null) {
      return null;
    }

    Map<FilePath, ContentRevision> baseRevisions = commitContext.getUserData(ourBaseRevisions);
    if (baseRevisions != null) {
      Path file = resolvePatchPath(project, path);
      FilePath filePath = VcsContextFactory.getInstance().createFilePath(file, Files.isDirectory(file));
      ContentRevision baseRevision = baseRevisions.get(filePath);
      if (baseRevision != null) {
        try {
          return baseRevision.getContent();
        }
        catch (VcsException e) {
          LOG.info(e);
        }
      }
    }

    if (Boolean.TRUE.equals(commitContext.getUserData(ourProvideStoredBaseRevisionTextKey))) {
      Map<String, String> map = commitContext.getUserData(ourStoredTexts);
      if (map != null) {
        String content = map.get(getStoredTextKey(project, path));
        if (content != null) return content;
      }
    }
    return null;
  }
@Override
  public CharSequence provideContent(@NotNull Project project, @NotNull String path, @Nullable CommitContext commitContext)