public static @Nullable ShortcutSet getShortcutSet(@NotNull IntentionAction action) {
    ShortcutSet shortcut = action instanceof ShortcutProvider ? ((ShortcutProvider)action).getShortcut() : null;
    return shortcut != null ? shortcut : IntentionShortcutManager.getInstance().getShortcutSet(action);
  }
public static @Nullable ShortcutSet getShortcutSet(@NotNull IntentionAction action)