public function consumed(): ?EventCollection
    {
        $cardinality = $this->cardinality;

        if ($result = $this->checkConsumed()) {
            return $result;
        }

        return $this->assertionRecorder->createFailure(
            $this->assertionRenderer->renderIterableConsumed(
                $this->subject,
                $cardinality,
                $this->isGenerator
            )
        );
    }