code: public function getAccount($email)
      {
          $accounts = $this->getTqParameter('email_accounts');
  
          if (empty($accounts[$email])) {
              throw new \InvalidArgumentException(sprintf(
                  'An account for "%s" email address is not defined. Available addresses: "%s".',
                  $email,
                  implode(', ', array_keys($accounts))
              ));
          }
  
          return $accounts[$email];
      }
docs: @param string $email
  
  @throws \InvalidArgumentException
  
  @return array