code: private function getCurrencyIdentity(array $entry)
      {
          if (empty($entry['amounts'])) {
              return null;
          }
  
          $amount = array_shift($entry['amounts']);
  
          return $this->identityService->findOneBy([
              'adapterIdentifier' => (string) $amount['currency'],
              'adapterName' => PlentymarketsAdapter::NAME,
              'objectType' => Currency::TYPE,
          ]);
      }
docs: @param array $entry
  
  @return null|Identity