public static Annotations getAnnotations(AttributeList attribs) {
    Annotations result = getAnnotations0(attribs);
    Annotation signature = getSignature(attribs);
    Annotation sourceDebugExtension = getSourceDebugExtension(attribs);

    if (signature != null) {
      result = Annotations.combine(result, signature);
    }

    if (sourceDebugExtension != null) {
      result = Annotations.combine(result, sourceDebugExtension);
    }

    return result;
  }
Gets the annotations out of a given {@link AttributeList}. This combines both visible and
invisible annotations into a single result set and also adds in a system annotation for the
{@code Signature} attribute if present.

@param attribs {@code non-null;} the attributes list to search in
@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