Warn about usage of `equals` when identities are effectively compared