code: public static GeometryCollection fromGeometry(@NonNull Geometry geometry) {
      List<Geometry> geometries = Arrays.asList(geometry);
      return new GeometryCollection(TYPE, null, geometries);
    }
docs: Create a new instance of this class by giving the collection a single GeoJSON {@link Geometry}.
  
  @param geometry a non-null object of type geometry which makes up this collection
  @return a new instance of this class defined by the values passed inside this static factory
  method
  @since 3.0.0