Sunnysideup\Ecommerce\ProductsAndGroups\Builders\AbstractProductsAndGroupsList::getParentGroupsBasedOnProducts
KEY METHOD!
Applies default filter for groups With the current product list, return all the instances that the products are displayed under. This only returns the direct parents.
Signature
public function getParentGroupsBasedOnProducts()