public final int indexOfLabel(int label) {
    if (label >= labelToIndex.size()) {
      return -1;
    } else {
      return labelToIndex.get(label);
    }
  }
Gets the index of the first item in the list with the given label, if any.

@param label {@code >= 0;} the label to look for
@return {@code >= -1;} the index of the so-labelled item, or {@code -1} if none is found
android/android_framework/dex-maker/src/main/java/com/android/dx/util/LabeledList.java