public static <T extends Geometry> JTSGeometryExpression<T> asJTSGeometry(
            Expression<T> expr) {
        Expression<T> underlyingMixin = ExpressionUtils.extract(expr);
        return new JTSGeometryExpression<T>(underlyingMixin) {

            private static final long serialVersionUID = -6714044005570420009L;

            @Override
            public <R, C> R accept(Visitor<R, C> v, C context) {
                return this.mixin.accept(v, context);
            }

        };
    }
Create a new JTSGeometryExpression

@param expr Expression of type Geometry
@return new JTSGeometryExpression
querydsl-spatial/src/main/java/com/querydsl/spatial/locationtech/jts/JTSGeometryExpressions.java