void (Collection<MavenProject> projects, Map<MavenProject, Module> mavenProjectToModule, Map<MavenProject, String> mavenProjectToModuleName, Map<MavenProject, String> mavenProjectToModulePath, String dedicatedModuleDir) { for (MavenProject each : projects) { Module module = mavenProjectToModule.get(each); String path = getPath(mavenProjectToModuleName.get(each), each, dedicatedModuleDir, module); mavenProjectToModulePath.put(each, path); } }