private AnnotationsList parseAnnotationsList(AnnotationVisibility visibility) throws IOException {
    int count = input.readUnsignedByte();

    if (observer != null) {
      parsed(1, "num_parameters: " + Hex.u1(count));
    }

    AnnotationsList outerList = new AnnotationsList(count);

    for (int i = 0; i < count; i++) {
      if (observer != null) {
        parsed(0, "parameter_annotations[" + i + "]:");
        changeIndent(1);
      }

      Annotations annotations = parseAnnotations(visibility);
      outerList.set(i, annotations);

      if (observer != null) {
        observer.changeIndent(-1);
      }
    }

    outerList.setImmutable();
    return outerList;
  }
Parses a list of annotation lists.

@param visibility {@code non-null;} visibility of the parsed annotations
@return {@code non-null;} the list of annotation lists read from the attribute data
android/android_framework/dex-maker/src/main/java/com/android/dx/cf/direct/AnnotationParser.java