protected static NavigableMap<Bytes, Optional<byte[]>> newSegmentMap(
      final Map<Bytes, Optional<byte[]>> sourceMap) {

    Comparator<Bytes> byteWiseComparator =
        Comparator.comparing(Bytes::toArrayUnsafe, Arrays::compare);

    NavigableMap<Bytes, Optional<byte[]>> segMap = new ConcurrentSkipListMap<>(byteWiseComparator);

    segMap.putAll(sourceMap);
    return segMap;
  }
Create and populate a navigable segment map, with a compatible Bytes comparator.

@param sourceMap sourcemap to initialize the segmentmap with.
@return populated segment map
services/kvstore/src/main/java/org/hyperledger/besu/services/kvstore/SegmentedInMemoryKeyValueStorage.java