@Override
  protected Stream<SnapDataRequest> getRequestsFromTrieNodeValue(
      final WorldStateStorageCoordinator worldStateStorageCoordinator,
      final SnapWorldDownloadState downloadState,
      final Bytes location,
      final Bytes path,
      final Bytes value) {
    final Stream.Builder<SnapDataRequest> builder = Stream.builder();
    final PmtStateTrieAccountValue accountValue =
        PmtStateTrieAccountValue.readFrom(RLP.input(value));

    // Retrieve account hash
    final Hash accountHash =
        Hash.wrap(
            Bytes32.wrap(CompactEncoding.pathToBytes(Bytes.concatenate(getLocation(), path))));

    // update the flat db only for bonsai
    worldStateStorageCoordinator.applyWhenFlatModeEnabled(
        onBonsai -> {
          onBonsai.updater().putAccountInfoState(accountHash, value).commit();
        });

    // Add code, if appropriate
    if (!accountValue.getCodeHash().equals(Hash.EMPTY)) {
      builder.add(createBytecodeRequest(accountHash, getRootHash(), accountValue.getCodeHash()));
    }

    // Retrieve the storage root from the database, if available
    final Hash storageRootFoundInDb =
        worldStateStorageCoordinator
            .getTrieNodeUnsafe(Bytes.concatenate(accountHash, Bytes.EMPTY))
            .map(Hash::hash)
            .orElse(Hash.wrap(MerkleTrie.EMPTY_TRIE_NODE_HASH));
    if (!storageRootFoundInDb.equals(accountValue.getStorageRoot())) {
      // If the storage root is not found in the database, add the account to the list of accounts
      // to be repaired
      downloadState.addAccountToHealingList(CompactEncoding.bytesToPath(accountHash));
      // If the account's storage root is not empty,
      // fill it with trie heal before completing with a flat heal
      if (!accountValue.getStorageRoot().equals(MerkleTrie.EMPTY_TRIE_NODE_HASH)) {
        SnapDataRequest storageTrieRequest =
            createStorageTrieNodeDataRequest(
                accountValue.getStorageRoot(), accountHash, getRootHash(), Bytes.EMPTY);
        builder.add(storageTrieRequest);
      }
    }
    return builder.build();
  }
Represents a healing request for an account trie node.
ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/sync/snapsync/request/heal/AccountTrieNodeHealingRequest.java