code: public static Method findMethod(Class<?> type, String name,
  			Class<?>... parameterTypes) {
  		while (type != null) {
  			try {
  				return type.getDeclaredMethod(name, parameterTypes);
  			} catch (Exception e) {
  			}
  			type = type.getSuperclass();
  		}
  		return null;
  	}
docs: Find the methods in a class (and its ancestors) annotated with a given
  annotation.
  
  @param type
  the class
  @param name
  the name
  @param parameterTypes
  the parameter types
  @return the method. <code>null</code> if not found.