code: public static Set<Method> getDeclaredMethods(Class<?> clazz, MethodFilter methodFilter) {
          Method[] methods = clazz.getDeclaredMethods();
          Set<Method> matches = new HashSet<Method>();
          for (Method method : methods) {       
              if (methodFilter.passFilter(method)) {
                  matches.add(method);
              }
          }
          return matches;
      }
docs: Returns the methods declared by clazz which matches the supplied
  method filter.
  
  @param clazz
  The class to inspect
  @param methodFilter
  The method filter to apply.
  
  @return methods that match which matches the supplied
  method filter.