protected Object[] argsWithReceiver(Object receiver,Object... args){
  Object[] executeArgs;
  if (receiver == null) {
    executeArgs=args;
  }
 else {
    executeArgs=new Object[args.length + 1];
    executeArgs[0]=receiver;
    for (int i=0; i < args.length; i++) {
      executeArgs[i + 1]=args[i];
    }
  }
  return applyArgSuppliers(executeArgs);
}

protected Object [ ] argsWithReceiver ( Object receiver , Object ... args ) { Object [ ] executeArgs ; if ( receiver == null ) { executeArgs = args ; } else { executeArgs = new Object [ args . length + 1 ] ; executeArgs [ 0 ] = receiver ; for ( int i = 0 ; i < args . length ; i ++ ) { executeArgs [ i + 1 ] = args [ i ] ; } } return applyArgSuppliers ( executeArgs ) ; }
prepends a non - null receiver argument to a given list or args .
