MultiplePsiFilesPerDocumentFileViewProvider (@NotNull VirtualFile fileCopy) { FileViewProvider originalProvider = getManager().getFileManager().createFileViewProvider(fileCopy, false); assert originalProvider instanceof MultiplePsiFilesPerDocumentFileViewProvider : "Original provider " + originalProvider + " is not multi-root for " + fileCopy + ", cached provider: " + myOriginalProvider; return (MultiplePsiFilesPerDocumentFileViewProvider)originalProvider; }