code: public JsCodeBuilder append(CodeChunk codeChunk) {
      codeChunk.collectRequires(requireCollector);
      return append(codeChunk.getStatementsForInsertingIntoForeignCodeAtIndent(indent.length()));
    }
docs: Serializes the given {@link CodeChunk} into the code builder, respecting the code builder's
  current indentation level.