code: public static <T extends Throwable> T clearTrace(T exception) {
          requireNonNull(exception, "exception");
          exception.setStackTrace(EMPTY_STACK_TRACE);
          return exception;
      }
docs: Empties the stack trace of the specified {@code exception}.