File (@NotNull JpsModule module, boolean forTests) { String key = module.getName() + (forTests ? TEST_SUFFIX : SOURCE_SUFFIX); if (myMapping.containsKey(key)) { return myMapping.get(key); } File file = findModuleInfoFile(module, forTests ? JavaSourceRootType.TEST_SOURCE : JavaSourceRootType.SOURCE); myMapping.put(key, file); return file; }