public static void clearBacktrace(@NotNull Throwable throwable) {
    try {
      throwable.setStackTrace(new StackTraceElement[0]);
      if (BACKTRACE_FIELD != null) {
        BACKTRACE_FIELD.set(throwable, null);
      }
    }
    catch (Throwable e) {
      ExceptionUtilRt.rethrowUnchecked(e);
      throw new RuntimeException(e);
    }
  }
public static void clearBacktrace(@NotNull Throwable throwable)