private static boolean equalsHandleNulls(Object a, Object b) {
    return (a == b) || ((a != null) && a.equals(b));
  }
Compares, handling nulls safely

@param a first object
@param b second object
@return true if they're equal or both null.
android/android_framework/dex-maker/src/main/java/com/android/dx/rop/code/Insn.java