public static @NotNull @NlsSafe String getShortcutsText(Shortcut @NotNull [] shortcuts) {
    if (shortcuts.length == 0) {
      return "";
    }
    return Arrays.stream(shortcuts).map(KeymapUtil::getShortcutText).collect(Collectors.joining(" "));
  }
public static @NotNull @NlsSafe String getShortcutsText(Shortcut @NotNull [] shortcuts)