void (SdkModificator sdkModificator, final Sdk javaSdk) { if (javaSdk != null) { if (!addOrderEntries(OrderRootType.SOURCES, javaSdk, sdkModificator)){ if (SystemInfo.isMac) { Sdk[] jdks = ProjectJdkTable.getInstance().getAllJdks(); for (Sdk jdk : jdks) { if (jdk.getSdkType() instanceof JavaSdk) { addOrderEntries(OrderRootType.SOURCES, jdk, sdkModificator); break; } } } else { String homePath = javaSdk.getHomePath(); if (homePath == null) return; File jarFile = new File(new File(homePath).getParentFile(), "src.zip"); if (jarFile.exists()) { JarFileSystem jarFileSystem = JarFileSystem.getInstance(); String path = jarFile.getAbsolutePath(); jarFileSystem.setNoCopyJarForPath(path); VirtualFile vFile = jarFileSystem.refreshAndFindFileByPath(path + JarFileSystem.JAR_SEPARATOR); if (vFile != null) { sdkModificator.addRoot(vFile, OrderRootType.SOURCES); } } } } } }