Sdk (String sdkHome, String name) { ProjectJdkTable table = ReadAction.compute(() -> ProjectJdkTable.getInstance()); Sdk existing = table.findJdk(name); if (existing != null) { return existing; } return JavaSdk.getInstance().createJdk(name, sdkHome, true); }