public ByteCatchList listFor(int pc) {
    int sz = size();
    Item[] resultArr = new Item[sz];
    int resultSz = 0;

    for (int i = 0; i < sz; i++) {
      Item one = get(i);
      if (one.covers(pc) && typeNotFound(one, resultArr, resultSz)) {
        resultArr[resultSz] = one;
        resultSz++;
      }
    }

    if (resultSz == 0) {
      return EMPTY;
    }

    ByteCatchList result = new ByteCatchList(resultSz);
    for (int i = 0; i < resultSz; i++) {
      result.set(i, resultArr[i]);
    }

    result.setImmutable();
    return result;
  }
Gets the list of items active at the given address. The result is automatically made immutable.

@param pc which address
@return {@code non-null;} list of exception handlers active at {@code pc}
android/android_framework/dex-maker/src/main/java/com/android/dx/cf/code/ByteCatchList.java