private function isTransactionalEvent(ConnectionInterface $connection, $event)
    {
        if ($this->isPrepared($connection) && $this->transactionLevel > 0) {
            return $this->shouldHandle($event);
        }

        return false;
    }