void (File file, SdkModificator sdkModificator) { File[] files = new File(file, LIB_SRC_DIR_NAME).listFiles(); if (files != null) { JarFileSystem fs = JarFileSystem.getInstance(); for (File child : files) { String path = child.getAbsolutePath(); if (!path.contains("generics") && (path.endsWith(".jar") || path.endsWith(".zip"))) { fs.setNoCopyJarForPath(path); VirtualFile vFile = fs.refreshAndFindFileByPath(path + JarFileSystem.JAR_SEPARATOR); if (vFile != null) { sdkModificator.addRoot(vFile, OrderRootType.SOURCES); } } } } }