code: public function handle(QueryInterface $query)
      {
          $elements = $this->api->findAll();
  
          $this->outputHandler->startProgressBar(count($elements));
  
          foreach ($elements as $element) {
              try {
                  $result = $this->responseParser->parse($element);
              } catch (Exception $exception) {
                  $this->logger->error($exception->getMessage());
  
                  $result = null;
              }
  
              if (empty($result)) {
                  $result = [];
              }
  
              $result = array_filter($result);
  
              foreach ($result as $parsedElement) {
                  yield $parsedElement;
              }
  
              $this->outputHandler->advanceProgressBar();
          }
  
          $this->outputHandler->finishProgressBar();
      }
docs: {@inheritdoc}