void (@NotNull AnActionEvent e) { Presentation presentation = e.getPresentation(); presentation.setText(myManager.getCloseAllButThisActionName()); presentation.setEnabledAndVisible(myManager.canCloseContents() && hasOtherCloseableContents()); }