code: private static function tryResolveBySpomkyLabsJoseSystem(): ?SpomkyLabsJoseSignatureGenerator
      {
          $requiredClasses = [
              JWKFactory::class,
              JWSFactory::class,
          ];
  
          foreach ($requiredClasses as $requiredClass) {
              if (!class_exists($requiredClass)) {
                  return null;
              }
          }
  
          return new SpomkyLabsJoseSignatureGenerator();
      }
docs: Try to resolve SpomkyLabsJoseSignatureGenerator
  
  @return SpomkyLabsJoseSignatureGenerator|null