code: private GeometryCollection parseCollection(ValueGetter data, int srid) {
          int count = data.getInt();
          Geometry[] geoms = new Geometry[count];
          this.parseGeometryArray(data, geoms, srid);
          return JtsGeometry.geofac.createGeometryCollection(geoms);
      }
docs: Parse the given {@link org.postgis.binary.ValueGetter} into a JTS
  {@link org.locationtech.jts.geom.GeometryCollection}.
  
  @param data {@link org.postgis.binary.ValueGetter} to parse.
  @param srid SRID of the parsed geometries.
  
  @return The parsed {@link org.locationtech.jts.geom.GeometryCollection}.