public static Stream<Trace> generateFromTransactionTrace(
      final ProtocolSchedule protocolSchedule,
      final TransactionTrace transactionTrace,
      final Block block,
      final AtomicInteger traceCounter,
      final boolean includeCreationMethod) {
    return generateFromTransactionTrace(
        protocolSchedule,
        transactionTrace,
        block,
        traceCounter,
        includeCreationMethod
            ? builder -> addContractCreationMethodToTrace(transactionTrace, builder)
            : builder -> {});
  }
Generates a stream of {@link Trace} from the passed {@link TransactionTrace} and {@link Block}
data.

@param protocolSchedule the current {@link ProtocolSchedule} to use
@param transactionTrace the {@link TransactionTrace} to use
@param block the {@link Block} to use
@param traceCounter the current traceCounter
@return a stream of generated traces {@link Trace}
ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/results/tracing/flat/FlatTraceGenerator.java