code: public static MultiPoint removeCoordinates(MultiPoint g) {
          Coordinate[] coords = CoordinateUtils.removeDuplicatedCoordinates(g.getCoordinates(),false);
          return FACTORY.createMultiPoint(coords);
      }
docs: Removes duplicated coordinates within a MultiPoint.
  
  @param g
  @return