code: public static StateIdsBuilder from(final Iterable<?> stateIds) {
          return (stateIds instanceof StateIdsBuilder) ? (StateIdsBuilder)stateIds : new StateIdsBuilder(stateIds);
      }
docs: Converts an iterable of state ids into a {@code StateIdsBuilder}. This method can be more efficient than using
  the equivalent constructor but the returned object might be backed by the object provided.
  
  @param stateIds The state ids to convert
  @return An equivalent instance of {@code StateIdsBuilder}