private boolean isInRange(
      final Bytes location, final Bytes startKeyPath, final Bytes endKeyPath) {
    final MutableBytes path = MutableBytes.create(Bytes32.SIZE * 2);
    path.set(0, location);
    return Arrays.compare(path.toArrayUnsafe(), startKeyPath.toArrayUnsafe()) >= 0
        && Arrays.compare(path.toArrayUnsafe(), endKeyPath.toArrayUnsafe()) <= 0;
  }
Visits a branch node during a traversal operation.

<p>This method is invoked when visiting a branch node. It first checks if the branch node is
marked as "dirty" (indicating changes that have not been persisted). If the node is clean, the
method returns immediately.

<p>For dirty branch nodes, it iterates through each child node. For each child, if the child is
dirty, it recursively visits the child, passing along the concatenated path (current location
plus the child's index) to the child's accept method.

<p>Additionally, it checks if the child node requires healing (e.g., if it's falls outside the
specified range of interest defined by {@code startKeyPath} and {@code endKeyPath}). If healing
is needed, the branch node is marked accordingly.

<p>Finally, it attempts to persist the branch node if applicable.

@param location The current location represented as {@link Bytes}.
@param branchNode The branch node being visited.
ethereum/trie/src/main/java/org/hyperledger/besu/ethereum/trie/SnapCommitVisitor.java