public static List<Object> toList(Object iterable) {
        List<Object> result = new ArrayList<>();
        of(iterable).forEachRemaining(result::add);
        return result;
    }
Collect an iterable-like into a newly allocated ArrayList.
@param iterable the iterable-like to collect
@return a new list with the elements
core/src/main/java/org/jdbi/v3/core/internal/IterableLike.java