void () { for (AnAction action : buildGroup(new Ref<>()).getChildActionsOrStubs()) { ShortcutSet shortcutSet = action.getShortcutSet(); if (shortcutSet.getShortcuts().length > 0 && action instanceof ToggleFragmentAction) { new DumbAwareAction(action.getTemplateText()) { @Override public void actionPerformed(@NotNull AnActionEvent e) { SettingsEditorFragment<?, ?> fragment = ((ToggleFragmentAction)action).myFragment; fragment.toggle(true, e); // show or set focus IdeFocusManager.getGlobalInstance().requestFocus(fragment.getEditorComponent(), false); FragmentStatisticsService.getInstance().logNavigateOption(e.getProject(), fragment.getId(), myConfigId, e); } }.registerCustomShortcutSet(shortcutSet, myPanel.getRootPane(), myDisposable); } } }