docs: public ResourcePoolsBuilder with(ResourcePool resourcePool) {
      final ResourceType<?> type = resourcePool.getType();
      final ResourcePool existingPool = resourcePools.get(type);
      if (existingPool != null) {
        throw new IllegalArgumentException("Can not add '" + resourcePool + "'; configuration already contains '" + existingPool + "'");
      }
      Map<ResourceType<?>, ResourcePool> newPools = new HashMap<>(resourcePools);
      newPools.put(type, resourcePool);
      return new ResourcePoolsBuilder(newPools);
    }