void (@NotNull Sdk jdk, @NotNull Disposable parentDisposable) { Sdk existingJdk = findJdk(jdk.getName(), jdk.getSdkType().getName()); if (existingJdk != null && existingJdk.getSdkAdditionalData() == jdk.getSdkAdditionalData()) return; addJdk(jdk); Disposer.register(parentDisposable, () -> WriteAction.runAndWait(()-> removeJdk(jdk))); }