public void showErrors(@NotNull List<? extends VcsException> list, @NotNull @Nls String action) {
    if (list.size() > 0) {
      @Nls StringBuilder buffer = new StringBuilder();
      buffer.append("\n");
      buffer.append(GitBundle.message("error.list.title", action));
      for (final VcsException exception : list) {
        buffer.append("\n");
        buffer.append(exception.getMessage());
      }
      final String msg = buffer.toString();
      UIUtil.invokeLaterIfNeeded(() -> Messages.showErrorDialog(myProject, msg, GitBundle.message("error.dialog.title")));
    }
  }
public void showErrors(@NotNull List<? extends VcsException> list, @NotNull @Nls String action)