VirtualFile[] (Component component, VirtualFile[] files) { JavadocQuarantineStatusCleaner.cleanIfNeeded(files); for (int i = 0; i < files.length; i++) { VirtualFile file = files[i], docRoot = null; if (file.getName().equalsIgnoreCase("docs")) { docRoot = file.findChild("api"); } else if (file.getFileSystem() instanceof ArchiveFileSystem && file.getParent() == null) { docRoot = file.findFileByRelativePath("docs/api"); } if (docRoot != null) files[i] = docRoot; } return files; }