private function loadPathMapping(PathMapping $mapping, Module $module) { return new LoadPathMapping($mapping, $module, $this->modules, $this->mappings, $this->mappingsByResource, $this->conflictDetector); }