private function destructCollector(Reflector $reflector, $tags, $hashes, $action)
    {
        if ($this->collector === null) {
            return;
        }

        $this->collector->endMeasuring(
            $action,
            is_array($hashes) ? $hashes : [$hashes],
            $tags,
            $reflector->getSql(),
            $reflector->getParameters()
        );
    }