Also maybe this logic already exists somewhere else? E.g. in TreeInfo or in backend, where they have to match this or similar tree shapes to provide special treatment for anonymous functions?