private NavigableMap<Bytes32, Bytes> toNavigableMap(
      final Stream<Pair<Bytes32, Bytes>> pairStream) {
    final TreeMap<Bytes32, Bytes> collected =
        pairStream.collect(
            Collectors.toMap(
                Pair::getFirst,
                Pair::getSecond,
                (v1, v2) -> v1,
                () -> new TreeMap<>(Comparator.comparing(Bytes::toHexString))));
    pairStream.close();
    return collected;
  }
streams raw storage Bytes using a specified predicate filter and value mapper.
ethereum/core/src/main/java/org/hyperledger/besu/ethereum/trie/pathbased/common/storage/flat/FlatDbStrategy.java