protected function generateWildcard(
        string $wildcard,
        ?NodeInterface $parent,
        ?string $name
    ): NodeInterface{
        $node   = new WildcardNode($this, $parent, $name);

        $node->setWildcard($wildcard);

        return $node;
    }