docs: public static Throwable extractRootCause(Throwable t) {
          Throwable result = t;
          while (result.getCause() != null) {
              result = result.getCause();
          }
          return result;
      }