private NameValuePair parseElement() throws IOException {
    requireLength(5);

    int elementNameIndex = input.readUnsignedShort();
    CstString elementName = (CstString) pool.get(elementNameIndex);

    if (observer != null) {
      parsed(2, "element_name: " + elementName.toHuman());
      parsed(0, "value: ");
      changeIndent(1);
    }

    Constant value = parseValue();

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

    return new NameValuePair(elementName, value);
  }
Parses a {@link NameValuePair}.

@return {@code non-null;} the parsed element
android/android_framework/dex-maker/src/main/java/com/android/dx/cf/direct/AnnotationParser.java