def METHOD_NAME(instance: Model, node: BaseExpression | F) -> BaseExpression:
    if isinstance(node, Value):
        return node.value
    if isinstance(node, F):
        return getattr(instance, node.name)
    if isinstance(node, CombinedExpression):
        return resolve_combined_expression(instance, node)
    return node