private function bundlesFromConfiguration(): array
    {
        $bundles = [];

        /** @var string[] $packageBundles */
        foreach ($this->readBundleConfiguration() as $packageBundles) {
            foreach ($packageBundles as $bundleClassName) {
                if (class_exists($bundleClassName)) {
                    $bundles[] = new $bundleClassName();
                }
            }
        }

        return $bundles;
    }