code: static ThreadTrace getThreadTrace() {
      ThreadTrace t = traces.get();
      if (t == null) {
        t = new ThreadTrace();
        t.prettyPrint = defaultPrettyPrint;
        traces.set(t);
      }
      return t;
    }
docs: Get the ThreadTrace for the current thread, creating one if necessary.