findChildNodesToReplace method Null safety

ChildNodesToReplace findChildNodesToReplace(
  1. ParentNode model
)

checks the whole ParentNode (all it children) if it can replace Node (s). We do not need to check the children's children (do not need a recursive call), the Parser will do this for us

Implementation

ChildNodesToReplace findChildNodesToReplace(ParentNode model);