GitCommandResult ( @NotNull GitRepository repository, @NotNull VcsCommitMetadata commit, boolean autoCommit, @NotNull List<? extends GitLineHandlerListener> listeners, @Nullable ProgressIndicator indicator, int alreadyCherryPickedCount, int totalCommitsToCherryPick ) { if (indicator != null) { updateCherryPickIndicatorText(indicator, commit, alreadyCherryPickedCount, totalCommitsToCherryPick); } GitCommandResult result = Git.getInstance().cherryPick( repository, commit.getId().asString(), autoCommit, shouldAddSuffix(repository, commit.getId()), listeners.toArray(new GitLineHandlerListener[0]) ); if (indicator != null) { indicator.setFraction((double)alreadyCherryPickedCount / totalCommitsToCherryPick); } return result; }