void (@NotNull Object option) { if (option instanceof AnAction) { ((AnAction)option).actionPerformed(new AnActionEvent(null, DataManager.getInstance().getDataContext(this), ActionPlaces.UNKNOWN, new Presentation(), ActionManager.getInstance(), 0)); } else if (option instanceof JToggleButton) { ((JToggleButton)option).doClick(); } else if (option instanceof FindModel) { mySelectedContextName = FindInProjectUtil.getPresentableName(FindModel.SearchContext.ANY); myFilterContextButton.repaint(); scheduleResultsUpdate(); } }