public function getMainFromTarget(int $target): int
    {
        if (!array_key_exists($target, $this->targetMap)) {
            throw new \RuntimeException('Not mapped');
        }
        return $this->targetMap[$target];
    }