code: public static <T> LinkedHashSet<T> consumeToLinkedHashSet(IterableCursor<T> cursor) {
          return consumeToCollection(cursor, new LinkedHashSet<T>(cursor.getCount()));
      }
docs: Returns an {@link java.util.LinkedHashSet} of the {@link android.database.Cursor} and closes
  it.