code: public static <R> R runAndReturn(Runnable runnable, R returnObject) {
          return runAndReturn(runnable, () -> returnObject);
      }
docs: Run and return r.
  
  @param <R>          the type parameter
  @param runnable     the runnable
  @param returnObject the return object
  @return the r