void (@NotNull Sdk sdk, @NotNull SdkDownloadTask task) { SdkModificator mod = sdk.getSdkModificator(); mod.setHomePath(FileUtil.toSystemIndependentName(task.getPlannedHomeDir())); mod.setVersionString(task.getPlannedVersion()); mod.commitChanges(); }