code: public static Type getReturnType(final String methodDescriptor) {
          char[] buf = methodDescriptor.toCharArray();
          int off = 1;
          while (true) {
              char car = buf[off++];
              if (car == ')') {
                  return getType(buf, off);
              } else if (car == 'L') {
                  while (buf[off++] != ';') {
                  }
              }
          }
      }
docs: Returns the Java type corresponding to the return type of the given
  method descriptor.
  
  @param methodDescriptor
  a method descriptor.
  @return the Java type corresponding to the return type of the given
  method descriptor.