public static String extractReturnType(String sig){
  int i=sig.lastIndexOf(')');
  Assert.isTrue(i != -1);
  return sig.substring(i + 1);
}

public static String extractReturnType ( String sig ) { int i = sig . lastIndexOf ( ')' ) ; Assert . isTrue ( i != - 1 ) ; return sig . substring ( i + 1 ) ; }
extracts the return type from a method signature .
