private static @Nullable String getExceptionOriginalReason(@NotNull Throwable exception) {
    ExternalSystemException esException = findCause(exception, ExternalSystemException.class);
    if (esException != null && esException != exception) {
      String originalReason = esException.getOriginalReason();
      if (!StringUtilRt.isEmptyOrSpaces(originalReason)) {
        return originalReason;
      }
    }
    return null;
  }
private static @Nullable String getExceptionOriginalReason(@NotNull Throwable exception)