code: private function getCustomerGroups(Bundle $bundle)
      {
          $result = [];
          foreach ($bundle->getPrices() as $price) {
              $group = $this->getCustomerGroupFromPrice($price);
  
              if (null === $group) {
                  continue;
              }
  
              $result[$group->getKey()] = $group;
          }
  
          return new ArrayCollection($result);
      }
docs: @param Bundle $bundle
  
  @return ArrayCollection