code: private function getPrices(Variation $variation)
      {
          $prices = [];
  
          foreach ($variation->getPrices() as $price) {
              if (null === $price->getCustomerGroupIdentifier()) {
                  $customerGroupKey = 'EK';
              } else {
                  $customerGroupIdentity = $this->identityService->findOneBy([
                      'objectIdentifier' => $price->getCustomerGroupIdentifier(),
                      'objectType' => CustomerGroup::TYPE,
                      'adapterName' => ShopwareAdapter::NAME,
                  ]);
  
                  if (null === $customerGroupIdentity) {
                      continue;
                  }
  
                  $customerGroupKey = $this->customerGroupDataProvider->getCustomerGroupKeyByShopwareIdentifier(
                      $customerGroupIdentity->getAdapterIdentifier()
                  );
  
                  if (null === $customerGroupKey) {
                      continue;
                  }
              }
  
              $prices[] = [
                  'customerGroupKey' => $customerGroupKey,
                  'price' => $price->getPrice(),
                  'pseudoPrice' => $price->getPseudoPrice(),
                  'from' => $price->getFromAmount(),
                  'to' => $price->getToAmount(),
              ];
          }
  
          return $prices;
      }
docs: @param Variation $variation
  
  @return array