void (@NotNull final AnActionEvent e) { super.update(e); final Presentation presentation = e.getPresentation(); String text = JavaUiBundle .message(myHideModuleGroups ? "project.roots.plain.mode.action.text.enabled" : "project.roots.plain.mode.action.text.disabled"); presentation.setText(text); presentation.setDescription(text); if (myContext.myModulesConfigurator != null) { presentation.setVisible(myContext.myModulesConfigurator.getModuleModel().hasModuleGroups()); } }