code: public void addTrace(LogTrace<E> trace) throws ParameterException {
                  Validate.notNull(trace);
                  trace.setCaseNumber(traces.size() + 1);
                  traces.add(trace);
                  summary.addTrace(trace);
                  if (!distinctTraces.add(trace)) {
                          for (LogTrace<E> storedTrace : traces) {
                                  if (storedTrace.equals(trace)) {
                                          storedTrace.addSimilarInstance(trace.getCaseNumber());
                                          trace.addSimilarInstance(storedTrace.getCaseNumber());
                                  }
                          }
                  }
          }
docs: Adds a trace to the log.
  
  @param trace Trace to add.
  @throws ParameterException