Should we refactor this to an equals method in ProjectReference (and hashCode of course)?

It would make its usage easier, you could just use a HashSet instead of having to remember to use this comparator.