public void addMethodAnnotations(CstMethodRef method, Annotations annotations, DexFile dexFile) {
    if (methodAnnotations == null) {
      methodAnnotations = new ArrayList<MethodAnnotationStruct>();
    }

    methodAnnotations.add(
        new MethodAnnotationStruct(method, new AnnotationSetItem(annotations, dexFile)));
  }
Adds a method annotations item to this instance.

@param method {@code non-null;} method in question
@param annotations {@code non-null;} associated annotations to add
@param dexFile {@code non-null;} dex output
android/android_framework/dex-maker/src/main/java/com/android/dx/dex/file/AnnotationsDirectoryItem.java