void (@NotNull AnActionEvent e) { Presentation presentation = e.getPresentation(); presentation.setEnabled(!myForwardStack.isEmpty()); if (!isToolbar(e)) { presentation.setVisible(presentation.isEnabled()); } }