private static void deduplicateSdkNames(@NotNull ProjectSdksModel projectSdksModel) {
    Set<String> processedNames = new HashSet<>();
    Collection<Sdk> editableSdks = projectSdksModel.getProjectSdks().values();
    for (Sdk sdk : editableSdks) {
      if (processedNames.contains(sdk.getName())) {
        SdkModificator sdkModificator = sdk.getSdkModificator();
        String name = createUniqueSdkName(sdk.getName(), editableSdks);
        sdkModificator.setName(name);
        sdkModificator.commitChanges();
      }
      processedNames.add(sdk.getName());
    }
  }
private static void deduplicateSdkNames(@NotNull ProjectSdksModel projectSdksModel)