void (final @NotNull AnActionEvent e) { final boolean state = !isSelected(e); setSelected(e, state); final Presentation presentation = e.getPresentation(); Toggleable.setSelected(presentation, state); }