I can see why the IDE would complain, but semantically this is correct; but I am ok with changing it to `equals()`.