@Override
        public boolean equals(IdeaProject o1, IdeaProject o2) {
          if (o1 == o2) return true;
          if (o1 != null && o2 != null) {
            DomainObjectSet<? extends IdeaModule> modules1 = o1.getModules();
            DomainObjectSet<? extends IdeaModule> modules2 = o2.getModules();
            if (modules1.size() != modules2.size()) return false;

            BuildIdentifier buildIdentifier1 = modules1.getAt(0).getGradleProject().getProjectIdentifier().getBuildIdentifier();
            BuildIdentifier buildIdentifier2 = modules2.getAt(0).getGradleProject().getProjectIdentifier().getBuildIdentifier();
            return isSameBuild(buildIdentifier1, buildIdentifier2);
          }
          return false;
        }
@Override
        public boolean equals(IdeaProject o1, IdeaProject o2)