code: static void removeDetails(Throwable throwable, ExceptionTruncation truncation) {
  
      if (truncation.isRemoveStacktrace()) {
        throwable.setStackTrace(ExceptionUtil.NO_STACKTRACE);
      }
      if (truncation.isRemoveCause()) {
        getHelper().setCause(throwable, null);
      }
      if (truncation.isRemoveSuppressed()) {
        getHelper().setSuppressed(throwable, null);
      }
    }
docs: @see NlsThrowable#createCopy(ExceptionTruncation)
  
  @param throwable is the {@link Throwable} to truncate.
  @param truncation the {@link ExceptionTruncation} settings.