code: public IndentingWriter withIndentation(Indentation newIndentation) {
          return newIndentation == null || this.indentation.equals(newIndentation) ? this
                  : new IndentingWriter(delegate, newIndentation, lastWritten, addWhitespace.get());
      }
docs: Returns an indenting writer with the new indentation.
  <p>
  Please note: Already written lines will not be modified to accomodate the new indentation.
  
  @param newIndentation The new indentation to apply to this writer (optional).
  @return Either this writer if the indentation is already correct,
  or a new IndentingWriter with the adapted indentation.