void (@NotNull AnActionEvent e) { super.update(e); Presentation presentation = e.getPresentation(); boolean isEnabled = CreateFromTemplateGroup.canCreateFromTemplate(e, myTemplate.get()); presentation.setEnabledAndVisible(isEnabled); }