void (@NotNull AnActionEvent e) { Presentation presentation = e.getPresentation(); presentation.setEnabledAndVisible(e.getProject() != null && !getTargets(e).isEmpty()); if (ActionPlaces.isPopupPlace(e.getPlace())) { presentation.setText(getTemplatePresentation().getText() + "..."); } }