docs: public static RuntimeException getRuntimeException(final Throwable exc) {
          Throwable e = exc;
          while (e.getCause() instanceof RuntimeException) {
              e = e.getCause();
          }
          if (e instanceof RuntimeException) {
              return (RuntimeException) e;
          } else {
              return new RuntimeException(exc);
          }
      }