private void initActionShortcutDelegates(@NotNull PopupStep<?> step, @NotNull JComponent component) {
    var itemsSource = step.getMnemonicNavigationFilter();
    if (itemsSource == null) {
      return;
    }
    for (Object item : itemsSource.getValues()) {
      if (item instanceof ShortcutProvider itemShortcut) {
        var shortcut = itemShortcut.getShortcut();
        if (shortcut != null && shortcut.hasShortcuts()) {
          var action = new ActionShortcutDelegate(item, shortcut);
          action.registerCustomShortcutSet(component, this);
        }
      }
    }
  }
private void initActionShortcutDelegates(@NotNull PopupStep<?> step, @NotNull JComponent component)