Sdk (@NotNull String path, @NotNull SdkType sdkType) { VirtualFile sdkHome = WriteAction.compute(() -> { return LocalFileSystem.getInstance().refreshAndFindFileByPath(FileUtil.toSystemIndependentName(path)); }); if (sdkHome != null) { final Sdk newSdk = setupSdk(ProjectJdkTable.getInstance().getAllJdks(), sdkHome, sdkType, true, null, null); if (newSdk != null) { addSdk(newSdk); } return newSdk; } return null; }