docs: public static <T> T withWriter(OutputStream stream, @ClosureParams(value=SimpleType.class, options="java.io.Writer") Closure<T> closure) throws IOException {
          return withWriter(new OutputStreamWriter(stream), closure);
      }