private static @Nls @NotNull String getVcsActionName(@Nullable Project project) {
    String defaultName = ActionsBundle.message("action.Annotate.text");
    if (project == null) return defaultName;

    Set<String> names = ContainerUtil.map2Set(ProjectLevelVcsManager.getInstance(project).getAllActiveVcss(), vcs -> {
      AnnotationProvider provider = vcs.getAnnotationProvider();
      if (provider != null) {
        return provider.getActionName();
      }
      return defaultName;
    });

    return ContainerUtil.getOnlyItem(names, defaultName);
  }
private static @Nls @NotNull String getVcsActionName(@Nullable Project project)