boolean (@NotNull Object selected, int modifiers, @NotNull String text) { if (selected instanceof BooleanOptionDescription option) { option.setOptionState(!option.isOptionEnabled()); return false; } if (selected instanceof OptionsTopHitProvider) { setSearchString(SearchTopHitProvider.getTopHitAccelerator() + ((OptionsTopHitProvider) selected).getId() + " "); return false; } if (isActionValue(selected) || isSetting(selected)) { GotoActionAction.openOptionOrPerformAction(selected, "", myProject, myContextComponent, modifiers); return true; } return false; }