rulebook-core/src/main/java/com/deliveredtechnologies/rulebook/util/AnnotationUtils.java
public static Optional<Method> getAnnotatedMethod(Class annotation, Class clazz) {
    List<Method> methods = getAnnotatedMethods(annotation, clazz);
    return Optional.ofNullable(methods.size() > 0 ? methods.get(0) : null);
  }
public static Optional<Method> getAnnotatedMethod(Class annotation, Class clazz) {
    List<Method> methods = getAnnotatedMethods(annotation, clazz);
    return Optional.ofNullable(methods.size() > 0 ? methods.get(0) : null);
  }
Method getAnnotatedMethod the first annotated method of the type of annotation specified.
@param annotation      the type of the annotation
@param clazz           the annotated class
@return                the first annotated field found in clazz of the type annotation