void (@NotNull AnActionEvent e) { final DataContext dataContext = e.getDataContext(); final Project project = CommonDataKeys.PROJECT.getData(dataContext); final Module[] modules = LangDataKeys.MODULE_CONTEXT_ARRAY.getData(dataContext); boolean active = project != null && modules != null && modules.length != 0 && !ModuleGrouperKt.isQualifiedModuleNamesEnabled(project); e.getPresentation().setVisible(active); }