public static Annotation makeEnclosingMethod(CstMethodRef method) {
    Annotation result = new Annotation(ENCLOSING_METHOD_TYPE, SYSTEM);

    result.put(new NameValuePair(VALUE_STRING, method));
    result.setImmutable();
    return result;
  }
Constructs a standard {@code EnclosingMethod} annotation.

@param method {@code non-null;} the enclosing method
@return {@code non-null;} the annotation
android/android_framework/dex-maker/src/main/java/com/android/dx/dex/file/AnnotationUtils.java