code: public static List<AnnotationInstance> createMethodAnnotationList(final MethodInfo method) {
          final List<AnnotationInstance> result = new ArrayList<>();
          for (AnnotationInstance ai : method.annotations()) {
              final AnnotationTarget at = ai.target();
              if (at.kind() == AnnotationTarget.Kind.METHOD) {
                  result.add(ai);
              }
          }
          return result;
      }
docs: Creates the list of annotations found only on the method (not on parameters).
  
  @param method
  Method to create a list for.
  
  @return List of annotations.