private static DependencyResolutionServices extractDependencyResolutionService(DefaultVersionCatalogBuilder builder) {
    try {
      Field supplierField = DefaultVersionCatalogBuilder.class.getDeclaredField("dependencyResolutionServicesSupplier");
      supplierField.setAccessible(true);
      Object supplier = supplierField.get(builder);
      Method getMethod = supplier.getClass().getMethod("get");
      getMethod.setAccessible(true);
      Object result = getMethod.invoke(supplier);
      if (result instanceof DependencyResolutionServices) {
        return (DependencyResolutionServices)result;
      } else {
        return null;
      }
    }
    catch (NoSuchFieldException | InvocationTargetException | NoSuchMethodException | IllegalAccessException e) {
      return null;
    }
  }
private static DependencyResolutionServices extractDependencyResolutionService(DefaultVersionCatalogBuilder builder)