code: public static ObjectInputStream newObjectInputStream(Path self, final ClassLoader classLoader) throws IOException {
          return IOGroovyMethods.newObjectInputStream(Files.newInputStream(self), classLoader);
      }
docs: Create an object input stream for this path using the given class loader.
  
  @param self        a {@code Path} object
  @param classLoader the class loader to use when loading the class
  @return an object input stream
  @throws java.io.IOException if an IOException occurs.
  @since 2.3.0