void () { GitCompoundResult compoundResult = new GitCompoundResult(myProject); Collection<GitRepository> repositories = getSuccessfulRepositories(); for (GitRepository repository : repositories) { GitCommandResult result = myGit.renameBranch(repository, myNewName, myCurrentName); if (result.success()) { repository.update(); notifyBranchNameChanged(repository, myNewName, myCurrentName); } compoundResult.append(repository, result); } if (compoundResult.totalSuccess()) { myNotifier.notifySuccess(BRANCH_RENAME_ROLLBACK_SUCCESS, GitBundle.message("git.rename.branch.rollback.successful"), GitBundle.message("git.rename.branch.renamed.back.to", myCurrentName)); } else { myNotifier.notifyError(BRANCH_RENAME_ROLLBACK_FAILED, GitBundle.message("git.rename.branch.rollback.failed"), compoundResult.getErrorOutputWithReposIndication(), true); } }