@ApiStatus.Internal
  public static @NotNull GitChangesSaver getSaver(@NotNull Project project,
                                                  @NotNull Git git,
                                                  @NotNull ProgressIndicator progressIndicator,
                                                  @NotNull @Nls String stashMessage,
                                                  @NotNull GitSaveChangesPolicy saveMethod,
                                                  boolean reportLocalHistoryActivity) {
    if (saveMethod == GitSaveChangesPolicy.SHELVE) {
      GitShelveChangesSaver shelveSaver = new GitShelveChangesSaver(project, git, progressIndicator, stashMessage);
      shelveSaver.setReportLocalHistoryActivity(reportLocalHistoryActivity);
      return shelveSaver;
    }
    GitStashChangesSaver stashSaver = new GitStashChangesSaver(project, git, progressIndicator, stashMessage);
    stashSaver.setReportLocalHistoryActivity(reportLocalHistoryActivity);
    return stashSaver;
  }
@ApiStatus.Internal
  public static @NotNull GitChangesSaver getSaver(@NotNull Project project,
                                                  @NotNull Git git,
                                                  @NotNull ProgressIndicator progressIndicator,
                                                  @NotNull @Nls String stashMessage,
                                                  @NotNull GitSaveChangesPolicy saveMethod,
                                                  boolean reportLocalHistoryActivity)