@Nonnull
    public static <T> WeightedObject<T> of(@Nonnull T object, double weight) {
        return new WeightedObject<>(object, weight);
    }
Represents a {@link Weighted} object.

@param <T> the object type
helper/src/main/java/me/lucko/helper/random/WeightedObject.java