VirtualFile[] (Component component, VirtualFile[] files) { for (int i = 0, filesLength = files.length; i < filesLength; i++) { if (!files[i].isDirectory() && FileTypeRegistry.getInstance().isFileOfType(files[i], ArchiveFileType.INSTANCE)) { files[i] = JarFileSystem.getInstance().getJarRootForLocalFile(files[i]); } } if (myPathListModel.add(Arrays.asList(files))) { setModified(true); } return files; }