]
              else
                [new_node, parent]
              end
            end
          end

          def on_list_type_with_modifications(node, parent)
            new_node_and_new_parent = on_list_type(node, parent)
            apply_modifications(node, parent, new_node_and_new_parent)
          end
