code: public void write(PrintWriter writer, Janitor janitor) {
          write(writer,janitor,warnings,"warning");
          write(writer,janitor,errors,"error");
      }
docs: Writes error messages to the specified PrintWriter.