docs: public static boolean isIllegalInstant(Throwable ex) {
          if (ex instanceof IllegalInstantException) {
              return true;
          }
          while (ex.getCause() != null && ex.getCause() != ex) {
              return isIllegalInstant(ex.getCause());
          }
          return false;
      }