Entry (@NotNull VirtualFile file, Pair<StoredContent, Long> contentAndStamps) { if (file instanceof VirtualFileSystemEntry) { return new FileEntry(((VirtualFileSystemEntry)file).getNameId(), contentAndStamps.first, contentAndStamps.second, !file.isWritable()); } return new FileEntry(file.getName(), contentAndStamps.first, contentAndStamps.second, !file.isWritable()); }