void (final @NotNull @Nls String error, final @NotNull GitRepository currentRepository, boolean somethingWasRebased, final @NotNull Collection<GitRepository> successful) { HtmlBuilder descriptionBuilder = new HtmlBuilder(); if (myRepositoryManager.moreThanOneRoot()) { descriptionBuilder.append(getShortRepositoryName(currentRepository) + ": "); } descriptionBuilder.appendRaw(error).br(); descriptionBuilder.appendRaw(GitRebaseUtils.mentionLocalChangesRemainingInStash(mySaver)); String title = myRebaseSpec.getOngoingRebase() == null ? GitBundle.message("rebase.notification.failed.rebase.title") : GitBundle.message("rebase.notification.failed.continue.title"); Notification notification = IMPORTANT_ERROR_NOTIFICATION .createNotification(title, descriptionBuilder.toString(), NotificationType.ERROR) .setDisplayId(GitNotificationIdsHolder.REBASE_FAILED) .addAction(RETRY_ACTION); if (somethingWasRebased || !successful.isEmpty()) { notification.addAction(ABORT_ACTION); } if (mySaver.wereChangesSaved()) { notification.addAction(VIEW_STASH_ACTION); } myNotifier.notify(notification); }