public static Annotations getMethodAnnotations(Method method) {
    Annotations result = getAnnotations(method.getAttributes());
    TypeList exceptions = getExceptions(method);

    if (exceptions.size() != 0) {
      Annotation throwsAnnotation = AnnotationUtils.makeThrows(exceptions);
      result = Annotations.combine(result, throwsAnnotation);
    }

    return result;
  }
Gets the annotations out of a given method, similar to {@link #getAnnotations}, also including
an annotation for the translation of the method-specific attribute {@code Exceptions}.

@param method {@code non-null;} the method in question
@return {@code non-null;} the set of annotations, which may be empty
android/android_framework/dex-maker/src/main/java/com/android/dx/dex/cf/AttributeTranslator.java