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