@Override
  public boolean equals(Object o) {
    return o instanceof MethodId
        && ((MethodId<?, ?>) o).declaringType.equals(declaringType)
        && ((MethodId<?, ?>) o).name.equals(name)
        && ((MethodId<?, ?>) o).parameters.equals(parameters)
        && ((MethodId<?, ?>) o).returnType.equals(returnType);
  }
Returns a descriptor like "(Ljava/lang/Class;[I)Ljava/lang/Object;".
android/android_framework/dex-maker/src/main/java/com/android/dx/MethodId.java