private void addFrame(final TraceFrame frame, final Optional<TraceFrame> nextTraceFrame) {
    handleDepthDecreased(frame);
    if (!mustIgnore(frame)) {
      initStep(frame);
      final VmOperation op = buildVmOperation();
      final VmOperationExecutionReport report = generateExecutionReport();
      generateTracingMemory(report);
      generateTracingPush(report);
      generateTracingStorage(report);
      handleDepthIncreased(op, report, nextTraceFrame);
      completeStep(frame, op, report);
      lastDepth = frame.getDepth();
    }
  }
Add a trace frame to the VmTrace result object.

@param frame the current trace frame
ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/results/tracing/vm/VmTraceGenerator.java