public function shouldExceptionCaptureBeSkipped(\Throwable $exception): bool
    {
        if (in_array(get_class($exception), $this->skipCapture, true)) {
            return true;
        }
        if ($this->skipHash && in_array($this->hashService->hash($exception), $this->skipHash, true)) {
            return true;
        }
        foreach ($this->skipInstanceof as $class) {
            if ($exception instanceof $class) {
                return true;
            }
        }

        if (function_exists('fnmatch')) {
            $message = $exception->getMessage();
            foreach ($this->skipWildcard as $wildcard) {
                if (fnmatch($wildcard, $message)) {
                    return true;
                }
            }
        }

        return false;
    }