docs: public static Method[] findMethods(Class<?> clazz) throws IllegalAccessException {
          final List<Method> methodList = new ArrayList<Method>();
  
          doWithDeclaredMethods(clazz, new MethodCallback() {
              public void doWith(Method method) {
                  methodList.add(method);
              }
          });
          return methodList.toArray(new Method[methodList.size()]);
      }