public static String toTypeDesc(SootMethodRef m){
  StringBuilder sb=new StringBuilder();
  sb.append('(');
  for (  Type t : m.parameterTypes()) {
    sb.append(toTypeDesc(t));
  }
  sb.append(')');
  sb.append(toTypeDesc(m.returnType()));
  return sb.toString();
}

public static String toTypeDesc ( SootMethodRef m ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( '(' ) ; for ( Type t : m . parameterTypes ( ) ) { sb . append ( toTypeDesc ( t ) ) ; } sb . append ( ')' ) ; sb . append ( toTypeDesc ( m . returnType ( ) ) ) ; return sb . toString ( ) ; }
compute type description for methods , comprising parameter types and return type .
