public function extractEntityIds(CollectionInterface $results)
    {
        $entityIds = [];
        $results->each(function ($entity) use (&$entityIds) {
            if ($entity instanceof EntityInterface) {
                $entityIds[] = $this->getEntityId($entity);
            }
        });

        return $entityIds;
    }