DocumentContent (@Nullable Project project, @NotNull Document document, @Nullable FileType fileType) { VirtualFile file = FileDocumentManager.getInstance().getFile(document); if (file != null) return new FileDocumentContentImpl(project, document, file); return new DocumentContentImpl(project, document, fileType); }