public boolean matchesVariable(RegisterSpec other) {
    if (other == null) {
      return false;
    }

    return type.getType().equals(other.type.getType())
        && ((local == other.local) || ((local != null) && local.equals(other.local)));
  }
Like {@link #equalsUsingSimpleType} but ignoring the register number. This is useful to
determine if two instances refer to the "same" local variable.

@param other {@code null-ok;} spec to compare to
@return {@code true} iff {@code this} and {@code other} are equal in the stated way
android/android_framework/dex-maker/src/main/java/com/android/dx/rop/code/RegisterSpec.java