docs: public static Method[] getAllDeclaredMethods(Class<?> leafClass) {
  		final List<Method> methods = new ArrayList<Method>(32);
  		doWithMethods(leafClass, new MethodCallback() {
  			public void doWith(Method method) {
  				methods.add(method);
  			}
  		});
  		return methods.toArray(new Method[methods.size()]);
  	}