public function combineSourceAndTargetMaps(): void
    {
        $this->analyzeMap();

        foreach ($this->targetMap as $targetId => $mainId) {
            if (!array_key_exists($mainId, $this->sourceMapInverse)) {
                continue;
            }
            $sourceId                    = $this->sourceMapInverse[$mainId];
            $this->map[$sourceId]        = $targetId;
            $this->mapInverse[$targetId] = $sourceId;
        }
    }