buf.append(method.getReturnType());
final JavaType returnType = method.getReturnType(); buf.append(returnType == null ? "void" : returnType.getName());
    private String getMethodId(JavaType clazz, Method method)    {        StringBuffer buf = new StringBuffer();        final String scopeDecl = method.getDeclaredScope().getDecl();        if (scopeDecl.length() > 0)        {            buf.append(scopeDecl);            buf.append(" ");        }        String name = method.getName();        if ("<init>".equals(name))        {            final String className = clazz.getName();            int idx = className.lastIndexOf('.');            name = className.substring(idx + 1);        }        else        {            buf.append(method.getReturnType());            buf.append(' ');        }        buf.append(name);        buf.append('(');        appendHumanReadableArgTypeList(method, buf);        buf.append(')');        return buf.toString();    }