code: public QueryBuilder parentIds(final Set<Integer> ids) {
          parentIds = new HashSet<Integer>();
          if (ids != null) {
              parentIds.addAll(ids);
          }
          return this;
      }
docs: Set the parent IDs that will be used to constraint the query results; replacing any
  previously configured IDs. Use the addParentIds() and removeParentIds() methods to
  modify the existing configuration.
  @param ids the new set of parent IDs used to constrain the query results
  @return this