void (@NotNull Map<GitRepository, GitCommandResult> results) { Map<GitRepository, GitCommandResult> successes = new HashMap<>(); Map<GitRepository, GitCommandResult> errors = new HashMap<>(); for (Map.Entry<GitRepository, GitCommandResult> entry : results.entrySet()) { GitCommandResult result = entry.getValue(); GitRepository repository = entry.getKey(); if (result.success()) { successes.put(repository, result); } else { errors.put(repository, result); } } if (errors.isEmpty()) { myNotifier.notifySuccess(RESET_SUCCESSFUL, "", GitBundle.message(myPresentation.notificationSuccess)); } else if (!successes.isEmpty()) { myNotifier.notifyImportantWarning(RESET_PARTIALLY_FAILED, GitBundle.message(myPresentation.notificationPartialFailureTitle), GitBundle.message(myPresentation.notificationPartialFailureMessage, joinRepos(successes.keySet()), joinRepos(errors.keySet()), formErrorReport(errors))); } else { myNotifier.notifyError(RESET_FAILED, GitBundle.message(myPresentation.notificationFailure), formErrorReport(errors), true); } }