This is strange. transformAny returns the new transformed tree. What side effects are you using here?