docs: public static void withWriter(final Process self, final Closure closure) {
          new Thread(new Runnable() {
              public void run() {
                  try {
                      IOGroovyMethods.withWriter(new BufferedOutputStream(getOut(self)), closure);
                  } catch (IOException e) {
                      throw new GroovyRuntimeException("exception while reading process stream", e);
                  }
              }
          }).start();
      }