public void importStateChangesFromSource(
      final PathBasedWorldStateUpdateAccumulator<ACCOUNT> source) {
    source
        .getAccountsToUpdate()
        .forEach(
            (address, pathBasedValue) -> {
              ACCOUNT copyPrior =
                  pathBasedValue.getPrior() != null
                      ? copyAccount(pathBasedValue.getPrior(), this, false)
                      : null;
              ACCOUNT copyUpdated =
                  pathBasedValue.getUpdated() != null
                      ? copyAccount(pathBasedValue.getUpdated(), this, true)
                      : null;
              accountsToUpdate.put(
                  address,
                  new PathBasedValue<>(copyPrior, copyUpdated, pathBasedValue.isLastStepCleared()));
            });
    source
        .getCodeToUpdate()
        .forEach(
            (address, pathBasedValue) -> {
              codeToUpdate.put(
                  address,
                  new PathBasedValue<>(
                      pathBasedValue.getPrior(),
                      pathBasedValue.getUpdated(),
                      pathBasedValue.isLastStepCleared()));
            });
    source
        .getStorageToUpdate()
        .forEach(
            (address, slots) -> {
              StorageConsumingMap<StorageSlotKey, PathBasedValue<UInt256>> storageConsumingMap =
                  storageToUpdate.computeIfAbsent(
                      address,
                      k ->
                          new StorageConsumingMap<>(
                              address, new ConcurrentHashMap<>(), storagePreloader));
              slots.forEach(
                  (storageSlotKey, uInt256PathBasedValue) -> {
                    storageConsumingMap.put(
                        storageSlotKey,
                        new PathBasedValue<>(
                            uInt256PathBasedValue.getPrior(),
                            uInt256PathBasedValue.getUpdated(),
                            uInt256PathBasedValue.isLastStepCleared()));
                  });
            });
    storageToClear.addAll(source.storageToClear);
    storageKeyHashLookup.putAll(source.storageKeyHashLookup);

    this.isAccumulatorStateChanged = true;
  }
Integrates prior state changes from an external source into the current state. This method
retrieves state modifications from the specified source and adds them to the current state's
list of modifications. It does not remove any existing elements in the current state's
modification list. If a modification has been made in both the current state and the source,
the modification from the source will be taken. This approach ensures that the source's state
changes are prioritized and overrides any conflicting changes in the current state.

@param source The source accumulator
ethereum/core/src/main/java/org/hyperledger/besu/ethereum/trie/pathbased/common/worldview/accumulator/PathBasedWorldStateUpdateAccumulator.java