private boolean rhsNeedsDot(JmespathExpression expression) {
            return expression instanceof FieldExpression
                    || expression instanceof MultiSelectHashExpression
                    || expression instanceof MultiSelectListExpression
                    || expression instanceof ObjectProjectionExpression
                    || expression instanceof FunctionExpression
                    || (expression instanceof BinaryExpression
                            && rhsNeedsDot(((BinaryExpression) expression).getLeft()));
        }
Serialize the given JMESPath expression to a string.

@param expression JMESPath expression to serialize.
@return Returns the serialized expression.
smithy-jmespath/src/main/java/software/amazon/smithy/jmespath/ExpressionSerializer.java