@NotNull
  private static Set<AbstractVcs> getVcsesForLocalChanges(@NotNull Project project, boolean showVcsCommit) {
    Set<AbstractVcs> affectedVcses = new HashSet<>();
    ChangeListManager manager = ChangeListManager.getInstance(project);

    Collection<Change> localChanges = manager.getAllChanges();
    affectedVcses.addAll(ChangesUtil.getAffectedVcses(localChanges, project));

    if (showVcsCommit) {
      List<FilePath> unversionedFiles = manager.getUnversionedFilesPaths();
      affectedVcses.addAll(ChangesUtil.getAffectedVcsesForFilePaths(unversionedFiles, project));
    }

    return affectedVcses;
  }
@NotNull
  private static Set<AbstractVcs> getVcsesForLocalChanges(@NotNull Project project, boolean showVcsCommit)