boolean (@NotNull DataContext dataContext) { final Module[] modules = LangDataKeys.MODULE_CONTEXT_ARRAY.getData(dataContext); List<UnloadedModuleDescription> unloadedModules = ProjectView.UNLOADED_MODULES_CONTEXT_KEY.getData(dataContext); return modules != null && !containsPrimaryModule(modules) || unloadedModules != null && !unloadedModules.isEmpty(); }