}
List<String> codePath = new ArrayList<String>(codePathModules.size() * 2);
for (Module codePathModule : codePathModules) {
ModuleRootManager moduleRootManager = ModuleRootManager.getInstance(codePathModule);
CompilerModuleExtension compilerModuleExt =
moduleRootManager.getModuleExtension(CompilerModuleExtension.class);
VirtualFile buildOutput = useTestOutputPath && codePathModule == module ?
getCompilerOutputPathForTests(compilerModuleExt) :
compilerModuleExt.getCompilerOutputPath();
if (buildOutput != null) {
codePath.add("-pa");
codePath.add(buildOutput.getCanonicalPath());
}
for (VirtualFile contentRoot : ModuleRootManager.getInstance(codePathModule).getContentRoots()) {