
    public function push(PropertyMetadata $metadata): void
    {
        $this->stack->push($metadata);
        $this->currentPath[] = $metadata->name;
    }

    public function pop(): ?PropertyMetadata
    {
        $metadata = $this->stack->pop();
        array_pop($this->currentPath);
