protected function getRootCategoryId($store)
{
if (is_numeric($store) || is_string($store)) {
$store = $this->getStore($store);
}
$storeGroupId = $store->getStoreGroupId();
return $this->storeManager->getGroup($storeGroupId)->getRootCategoryId();
}