boolean (Sdk newSdk) { if (mySdk == null || newSdk == null) return mySdk == newSdk; if (!Objects.equals(mySdk.getVersionString(), newSdk.getVersionString())) { return false; } String[] myUrls = mySdk.getRootProvider().getUrls(OrderRootType.CLASSES); String[] newUrls = newSdk.getRootProvider().getUrls(OrderRootType.CLASSES); return ContainerUtil.newHashSet(myUrls).equals(ContainerUtil.newHashSet(newUrls)); }