docs: public static <T> T withObjectOutputStream(Path self, @ClosureParams(value = SimpleType.class, options = "java.io.ObjectOutputStream") Closure<T> closure) throws IOException {
          return IOGroovyMethods.withStream(newObjectOutputStream(self), closure);
      }