Sdk (@NotNull String jdkName) { Sdk jdk = ProjectJdkTable.getInstance().findJdk(jdkName); if (jdk == null) return null; String homePath = jdk.getHomePath(); if (!isValidJdk(jdk)) throw new InvalidSdkException(homePath); return jdk; }