Function type for visiting nodes in the model tree
The current node being visited
The parent of the current node, or null for top-level nodes
Function type for visiting nodes in the model tree