Sdk (@NotNull String homePath) { ExternalSystemJdkProvider jdkProvider = ExternalSystemJdkProvider.getInstance(); List<Sdk> sdks = Arrays.asList(ProjectJdkTable.getInstance().getAllJdks()); String name = SdkConfigurationUtil.createUniqueSdkName(jdkProvider.getJavaSdkType(), homePath, sdks); Sdk jdk = jdkProvider.createJdk(name, homePath); SdkConfigurationUtil.addSdk(jdk); return jdk; }