public static @NlsSafe @Nullable String getShortcutTextOrNull(@NotNull @NonNls String actionId) {
    KeyboardShortcut shortcut = ActionManager.getInstance().getKeyboardShortcut(actionId);
    if (shortcut == null) return null;
    return getShortcutText(shortcut);
  }
public static @NlsSafe @Nullable String getShortcutTextOrNull(@NotNull @NonNls String actionId)