skipChildren() {
        skipped = true;
      }
Custom function to get next entries to visit.

This can be a performance bottleneck as arrays are created on every node visit.

@deprecated This will be replaced by a static `traversalType` set of orders in the future

Currently, this is only used in 3 ways:

- Traversing down the tree (normal DFS)
- Traversing up the tree (ancestors)
- Filtered version of traversal; which does not need to exist at the DFS level as the visitor
  can handle filtering
- Sorted traversal of BundleGraph entries, which does not have a clear use-case, but may
  not be safe to remove

Only due to the latter we aren't replacing this.