private static function tryResolveBySpomkyLabsJoseSystem(): ?SpomkyLabsJoseSignatureGenerator
    {
        $requiredClasses = [
            JWKFactory::class,
            JWSFactory::class,
        ];

        foreach ($requiredClasses as $requiredClass) {
            if (!class_exists($requiredClass)) {
                return null;
            }
        }

        return new SpomkyLabsJoseSignatureGenerator();
    }