void (@NotNull AnActionEvent e) { boolean selected = UISettings.getInstance().getPresentationMode(); e.getPresentation().setText(selected ? ActionsBundle.message("action.TogglePresentationMode.exit") : ActionsBundle.message("action.TogglePresentationMode.enter")); }