rulebook-core/src/main/java/com/deliveredtechnologies/rulebook/util/AnnotationUtils.java
public static Optional<Field> getAnnotatedField(Class annotation, Class clazz) {
    List<Field> fields = getAnnotatedFields(annotation, clazz);
    return Optional.ofNullable(fields.size() > 0 ? fields.get(0) : null);
  }
public static Optional<Field> getAnnotatedField(Class annotation, Class clazz) {
    List<Field> fields = getAnnotatedFields(annotation, clazz);
    return Optional.ofNullable(fields.size() > 0 ? fields.get(0) : null);
  }
Method getAnnotatedField gets the first annotated field 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