code: public void writeMethod(SourceWriter writer, String signature, String body) {
      writer.println(signature + " {");
      writer.indent();
      writer.println(body);
      writer.outdent();
      writer.println("}");
      writer.println();
    }
docs: Writes a method with the given signature and body to the source writer.
  
  @param writer writer that the method is written to
  @param signature method's signature
  @param body method's body