void (@NotNull AnActionEvent e, boolean state) { boolean actionState = TreeModelWrapper.shouldRevert(myAction) != state; myTreeActionsOwner.setActionIncluded(myAction, actionState); saveState(myAction, state); rebuild(false).onProcessed(ignore -> { if (mySpeedSearch.isPopupActive()) { mySpeedSearch.refreshSelection(); } }); }