code: private <T extends Annotation> T getAnnotation(JavaClass javaClazz, JavaField javaField, ClassLoader compileClassLoader, Class<T> annotationType) {
      try {
        Class<?> clazz = compileClassLoader.loadClass(javaClazz.getFullyQualifiedName());
        Field field = clazz.getField(javaField.getName());
        return field.getAnnotation(annotationType);
      }
      catch (ClassNotFoundException | NoSuchFieldException | SecurityException | IllegalArgumentException ex) {
        throw new RuntimeException("Unable to get contanst value of field '" + javaClazz.getName() + "#" + javaField.getName() + ":\n" + ex.getMessage(), ex);
      }
    }
docs: Get annotation for field.
  @param javaClazz QDox class
  @param javaField QDox field
  @param compileClassLoader Classloader for compile dependencies
  @param annotationType Annotation type
  @return Annotation of null if not present