docs: @SuppressWarnings("unchecked")
      public static Closure ensureClosure(Object o) {
          if (o == null) throw new UnsupportedOperationException();
          if (o instanceof Closure) return (Closure) o;
          return new ReturnValueWrappingClosure(o);
      }