code:     public static <E> Closure<E> forClosure(final int count, final Closure<? super E> closure) {
          if (count <= 0 || closure == null) {
              return NOPClosure.<E>nopClosure();
          }
          if (count == 1) {
              return (Closure<E>) closure;
          }
          return new ForClosure<E>(count, closure);
      }
  
      /**
       * Constructor that performs no validation.
       * Use <code>forClosure</code> if you want that.
       *
       * @param count  the number of times to execute the closure
       * @param closure  the closure to execute, not null
       */
  