List<AnAction> (@NotNull List<? extends SearchEverywhereContributor<?>> contributors) { for (SearchEverywhereContributor<?> contributor : contributors) { if (!Objects.equals(getSelectedTabID(), contributor.getSearchProviderId()) || !(contributor instanceof SearchFieldActionsContributor)) { continue; } Function1<AnAction, Unit> registerShortcut = action -> { ShortcutSet shortcut = ActionUtil.getMnemonicAsShortcut(action); if (shortcut != null) { action.setShortcutSet(shortcut); action.registerCustomShortcutSet(shortcut, this); } return Unit.INSTANCE; }; return ((SearchFieldActionsContributor)contributor).createRightActions(registerShortcut, () -> { scheduleRebuildList(SearchRestartReason.TEXT_SEARCH_OPTION_CHANGED); }); } return ContainerUtil.emptyList(); }