void (@NotNull Sdk originalJdk, @NotNull Sdk modifiedJdk) { final String previousName = originalJdk.getName(); final String newName = modifiedJdk.getName(); ((ProjectJdkImpl)modifiedJdk).copyTo((ProjectJdkImpl)originalJdk); if (!previousName.equals(newName)) { // fire changes because after renaming JDK its name may match the associated jdk name of modules/project ApplicationManager.getApplication().getMessageBus().syncPublisher(JDK_TABLE_TOPIC).jdkNameChanged(originalJdk, previousName); } }