void (@NotNull AnActionEvent e) { final Presentation presentation = e.getPresentation(); presentation.setEnabled(myModel.getSelectedIndex() > 0); presentation.setText(XPathBundle.message("action.next.history.entry.text")); presentation.setDescription(XPathBundle.message("action.navigate.to.next.history.entry.description")); }