void (@NotNull AnActionEvent e) { if (ActionPlaces.TOUCHBAR_GENERAL.equals(e.getPlace())) { final Presentation presentation = e.getPresentation(); if (Boolean.TRUE.equals(presentation.getClientProperty(BUTTON_MODE))) { InputEvent inputEvent = e.getInputEvent(); Component component = inputEvent != null ? inputEvent.getComponent() : null; if (component != null) { performWhenButton(component, ActionPlaces.TOUCHBAR_GENERAL); } return; } } super.actionPerformed(e); }