public RegisterSpec localItemToSpec(LocalItem local) {
    int length = specs.length;

    for (int reg = 0; reg < length; reg++) {
      RegisterSpec spec = specs[reg];

      if ((spec != null) && local.equals(spec.getLocalItem())) {
        return spec;
      }
    }

    return null;
  }
Returns the spec in this set that's currently associated with a given local (name and
signature), or {@code null} if there is none.

@param local {@code non-null;} local item to search for
@return {@code null-ok;} first register found with matching name and signature
android/android_framework/dex-maker/src/main/java/com/android/dx/rop/code/RegisterSpecSet.java