private void addClass(Class clazz) {
        Method[] methods = clazz.getDeclaredMethods();
        for (Method method : methods) {
            addMethod(method);
        }

        Class[] ifaces = clazz.getInterfaces();
        if (ifaces != null) {
            for (Class iface : ifaces) {
                addClass(iface);
            }
        }
    }