code: public static StringBuilder formatAndAppend(
              String compiledPattern, StringBuilder appendTo, int[] offsets, CharSequence... values) {
          int valuesLength = values != null ? values.length : 0;
          if (valuesLength < getArgumentLimit(compiledPattern)) {
              throw new IllegalArgumentException("Too few values.");
          }
          return format(compiledPattern, values, appendTo, null, true, offsets);
      }
docs: Formats the given values, appending to the appendTo builder.
  
  @param compiledPattern Compiled form of a pattern string.
  @param appendTo Gets the formatted pattern and values appended.
  @param offsets offsets[i] receives the offset of where
  values[i] replaced pattern argument {i}.
  Can be null, or can be shorter or longer than values.
  If there is no {i} in the pattern, then offsets[i] is set to -1.
  @param values The argument values.
  An argument value must not be the same object as appendTo.
  values.length must be at least getArgumentLimit().
  Can be null if getArgumentLimit()==0.
  @return appendTo