public function getDictionary(string $name): Definition
    {
        if (!$this->hasDictionary($name)) {
            throw new \InvalidArgumentException('Dictionary not found: ' . $name);
        }

        return $this->dictionaries[$name];
    }