code: public Method findAnnotatedMethod(Class<?> clazz, Class<? extends Annotation> anno) {
      for (Method meth : clazz.getMethods()) {
        if (meth.isAnnotationPresent(anno)) {
          return meth;
        }
      }
      return null;
    }
docs: Find method annotated with the given annotation.
  
  @param clazz
  @param anno
  @return returns Method if found, null otherwise