private static boolean hasModuleGroups(@Nullable Project project) {
    if (Registry.is("project.qualified.module.names")) return true;
    ModuleManager manager = getModuleManager(project);
    return manager != null && manager.hasModuleGroups();
  }
private static boolean hasModuleGroups(@Nullable Project project)