protected static function getListOfPackagesWithConfiguredObjects($bootstrap)
{
$objectManager = $bootstrap->getEarlyInstance(ObjectManagerInterface::class);
$packagesWithConfiguredObjects = array_reduce($objectManager->getAllObjectConfigurations(), function ($foundPackages, $item) {
if (isset($item['p']) && !in_array($item['p'], $foundPackages)) {
$foundPackages[] = $item['p'];
}
return $foundPackages;
}, []);
return $packagesWithConfiguredObjects;
}