void (@NotNull AnActionEvent e) { Presentation presentation = e.getPresentation(); presentation.setEnabledAndVisible(e.getData(LangDataKeys.MODULE_CONTEXT_ARRAY) != null); String description = IdeBundle.message("action.description.create.new.module.group"); presentation.setDescription(description); }