void (@NotNull AnActionEvent e) { Presentation presentation = e.getPresentation(); final DataContext dataContext = e.getDataContext(); final Module[] modules = LangDataKeys.MODULE_CONTEXT_ARRAY.getData(dataContext); e.getPresentation().setEnabledAndVisible(modules != null); if (modules != null) { String description = IdeBundle.message("message.move.modules.to.group", whatToMove(modules), myModuleGroup.presentableText()); presentation.setDescription(description); } }