code: public static <T, C extends Collection<T>> C consumeToCollection(IterableCursor<T> cursor,
              C collection) {
          try {
              for (T t : cursor) {
                  collection.add(t);
              }
          } finally {
              cursor.close();
          }
          return collection;
      }
docs: Add each item of this {@link android.database.Cursor} to the {@code collection} parameter.
  Closes the cursor once completed.
  
  @return the same collection as the parameter.
  @see #consumeToArrayList(com.venmo.cursor.IterableCursor)
  @see #consumeToLinkedList(com.venmo.cursor.IterableCursor)
  @see #consumeToLinkedHashSet(com.venmo.cursor.IterableCursor)