Sdk (@NotNull String name) { for (Sdk projectJdk : ProjectJdkTable.getInstance().getAllJdks()) { if (projectJdk.getName().equals(name)) { if (projectJdk.getSdkType() instanceof JavaSdkType) { return projectJdk; } } } return null; }