code: public void appendImmediate(Object object, String indentation) {
  		for (int i = segments.size() - 1; i >= 0; i--) {
  			String segment = segments.get(i);
  			for (int j = 0; j < segment.length(); j++) {
  				if (!WhitespaceMatcher.isWhitespace(segment.charAt(j))) {
  					append(object, indentation, i + 1);
  					return;
  				}
  			}
  		}
  		append(object, indentation, 0);
  	}
docs: Add the string representation of the given object to this sequence immediately. That is, all the trailing
  whitespace of this sequence will be ignored and the string is appended directly after the last segment that
  contains something besides whitespace. The given indentation will be prepended to each line except the first one
  if the object has a multi-line string representation.
  
  @param object
  the to-be-appended object.
  @param indentation
  the indentation string that should be prepended. May not be <code>null</code>.