private MethodType removeWrapper(MethodType targetType){
  Class[] types=targetType.parameterArray();
  for (int i=0; i < types.length; i++) {
    if (types[i] == Wrapper.class) {
      targetType=targetType.changeParameterType(i,Object.class);
    }
  }
  return targetType;
}

private MethodType removeWrapper ( MethodType targetType ) { Class [ ] types = targetType . parameterArray ( ) ; for ( int i = 0 ; i < types . length ; i ++ ) { if ( types [ i ] == Wrapper . class ) { targetType = targetType . changeParameterType ( i , Object . class ) ; } } return targetType ; }
helper method to manipulate the given type to replace wrapper with object .
