docs: public static Object withOutputStream(File file, @ClosureParams(value = SimpleType.class, options = "java.io.OutputStream") Closure closure) throws IOException {
          return IOGroovyMethods.withStream(newOutputStream(file), closure);
      }