Boolean (AbstractExternalDependency o1, AbstractExternalDependency o2) { if (!Objects.equal(iterator1.myProcessedStructure, iterator2.myProcessedStructure)) return false; return Objects.equal(o1.myId, o2.myId) && Objects.equal(o1.myScope, o2.myScope); }