UnloadedModuleDescription (@NotNull ModuleData moduleData) { for (String moduleName : suggestModuleNameCandidates(moduleData)) { UnloadedModuleDescription unloadedModuleDescription = ModuleManager.getInstance(myProject).getUnloadedModuleDescription(moduleName); // TODO external system module options should be honored to handle duplicated module names issues if (unloadedModuleDescription != null) { return unloadedModuleDescription; } } return null; }