VirtualFile (@NotNull VirtualFile file) { if (file.isValid()) { VirtualFileSystem fileSystem = file.getFileSystem(); if (fileSystem instanceof ArchiveFileSystem) { VirtualFile localFile = ((ArchiveFileSystem)fileSystem).getLocalByEntry(file); if (localFile != null) { return localFile; } } } return file; }