public static boolean equals(OrderEntry orderEntry1, OrderEntry orderEntry2) {
    if (orderEntry1 instanceof JdkOrderEntry jdkOrderEntry1 && orderEntry2 instanceof JdkOrderEntry jdkOrderEntry2) {
      return Comparing.equal(jdkOrderEntry1.getJdk(), jdkOrderEntry2.getJdk()) &&
             Comparing.strEqual(jdkOrderEntry1.getJdkName(), jdkOrderEntry2.getJdkName());
    }
    if (orderEntry1 instanceof LibraryOrderEntry jdkOrderEntry1 && orderEntry2 instanceof LibraryOrderEntry jdkOrderEntry2) {
      return Comparing.equal(jdkOrderEntry1.getLibrary(), jdkOrderEntry2.getLibrary());
    }
    if (orderEntry1 instanceof ModuleSourceOrderEntry jdkOrderEntry1 && orderEntry2 instanceof ModuleSourceOrderEntry jdkOrderEntry2) {
      return Comparing.equal(jdkOrderEntry1.getOwnerModule(), jdkOrderEntry2.getOwnerModule());
    }
    if (orderEntry1 instanceof ModuleOrderEntry jdkOrderEntry1 && orderEntry2 instanceof ModuleOrderEntry jdkOrderEntry2) {
      return Comparing.equal(jdkOrderEntry1.getModule(), jdkOrderEntry2.getModule());
    }
    return false;
  }
public static boolean equals(OrderEntry orderEntry1, OrderEntry orderEntry2)