private function scanNamespaceForPackages(NamespaceInterface $root, PackageInterface $parent = null): Generator
    {
        foreach ($root->iterateNamespaces() as $namespace) {
            yield from $this->loadPackage($namespace, $parent);
        }
    }