public AnnotationsList parseParameterAttribute(AnnotationVisibility visibility) {
    AnnotationsList result;

    try {
      result = parseAnnotationsList(visibility);

      if (input.available() != 0) {
        throw new ParseException("extra data in attribute");
      }
    } catch (IOException ex) {
      // ByteArray.MyDataInputStream should never throw.
      throw new RuntimeException("shouldn't happen", ex);
    }

    return result;
  }
Parses a parameter annotation attribute.

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