void (MouseEvent me) { DataContext context = ActionToolbar.getDataContextFor(TrafficLightButton.this); AnActionEvent event = AnActionEvent.createFromInputEvent(me, place, presentation, context, false, true); if (ActionUtil.lastUpdateAndCheckDumb(action, event, false)) { ActionUtil.performActionDumbAwareWithCallbacks(action, event); ActionsCollector.getInstance().record(event.getProject(), action, event, null); ActionToolbar toolbar = ActionToolbar.findToolbarBy(TrafficLightButton.this); if (toolbar != null) { toolbar.updateActionsImmediately(); } } }