public static String insertParameter(CtClass type,String descriptor){
  if (descriptor.charAt(0) != '(')   return descriptor;
 else   return "(" + of(type) + descriptor.substring(1);
}

public static String insertParameter ( CtClass type , String descriptor ) { if ( descriptor . charAt ( 0 ) != '(' ) return descriptor ; else return "(" + of ( type ) + descriptor . substring ( 1 ) ; }
inserts a parameter type at the beginning of the parameter list represented by the given descriptor .
