JpsTypedLibrary<JpsSdk<JpsDummyElement>> (final String mockJdkVersion) { final String mockJdkDir = "mockJDK-" + mockJdkVersion; File home = PathManagerEx.findFileUnderCommunityHome("java/" + mockJdkDir); JpsTypedLibrary<JpsSdk<JpsDummyElement>> jdk = myModel.getGlobal().addSdk(mockJdkVersion, home.getAbsolutePath(), mockJdkVersion, JpsJavaSdkType.INSTANCE); jdk.addRoot(getRtJar(mockJdkDir), JpsOrderRootType.COMPILED); return jdk; }