public List<Bytes> getAccountProofRelatedNodes(
      final Hash worldStateRoot, final Bytes32 accountHash) {
    final Proof<Bytes> accountProof =
        newAccountStateTrie(worldStateRoot).getValueWithProof(accountHash);
    return accountProof.getProofRelatedNodes();
  }
Retrieves the proof-related nodes for an account in the specified world state.

@param worldStateRoot The root hash of the world state.
@param accountHash The hash of the account.
@return A list of proof-related nodes for the account.
ethereum/core/src/main/java/org/hyperledger/besu/ethereum/proof/WorldStateProofProvider.java