docs: public static <T> T[] eachWithIndex(T[] self, @ClosureParams(value=FromString.class, options="T,Integer") Closure closure) {
          final Object[] args = new Object[2];
          int counter = 0;
          for(T item : self) {
              args[0] = item;
              args[1] = counter++;
              closure.call(args);
          }
          return self;
      }