public static <T extends Throwable> T clearTrace(T exception) {
        requireNonNull(exception, "exception");
        exception.setStackTrace(EMPTY_STACK_TRACE);
        return exception;
    }
Empties the stack trace of the specified {@code exception}.
core/src/main/java/com/linecorp/armeria/common/util/Exceptions.java