private static boolean hasLocalInfo(DalvInsn insn) {
    if (insn instanceof LocalSnapshot) {
      RegisterSpecSet specs = ((LocalSnapshot) insn).getLocals();
      int size = specs.size();
      for (int i = 0; i < size; i++) {
        if (hasLocalInfo(specs.get(i))) {
          return true;
        }
      }
    } else if (insn instanceof LocalStart) {
      RegisterSpec spec = ((LocalStart) insn).getLocal();
      return hasLocalInfo(spec);
    }

    return false;
  }
Helper for {@link #add} which scrutinizes a single instruction for local variable information.

@param insn {@code non-null;} instruction to scrutinize
@return {@code true} iff the instruction refers to any named locals
android/android_framework/dex-maker/src/main/java/com/android/dx/dex/code/OutputFinisher.java