code: public static <R> R runAndReturn(Runnable runnable,
              Supplier<R> returnSupplier) {
          runnable.run();
          return returnSupplier.get();
      }
docs: Run and return r.
  
  @param <R>            the type parameter
  @param runnable       the runnable
  @param returnSupplier the return supplier
  @return the r