docs: @NonNull
    private static List<Point> coordAllFromSingleGeometry(@NonNull List<Point> pointList,
                                                          @NonNull Geometry geometry,
                                                          @NonNull boolean excludeWrapCoord) {
      if (geometry instanceof Point) {
        pointList.add((Point) geometry);
      } else if (geometry instanceof MultiPoint) {
        pointList.addAll(((MultiPoint) geometry).coordinates());
      } else if (geometry instanceof LineString) {
        pointList.addAll(((LineString) geometry).coordinates());
      } else if (geometry instanceof MultiLineString) {
        coordAll(pointList, (MultiLineString) geometry);
      } else if (geometry instanceof Polygon) {
        coordAll(pointList, (Polygon) geometry, excludeWrapCoord);
      } else if (geometry instanceof MultiPolygon) {
        coordAll(pointList, (MultiPolygon) geometry, excludeWrapCoord);
      } else if (geometry instanceof GeometryCollection) {
        // recursive
        for (Geometry singleGeometry : ((GeometryCollection) geometry).geometries()) {
          coordAllFromSingleGeometry(pointList, singleGeometry, excludeWrapCoord);
        }
      }
      return pointList;
    }