@Nullable
  FileViewProvider getCachedViewProvider(@NotNull Document document) {
    VirtualFile virtualFile = getVirtualFile(document);
    if (virtualFile == null) return null;
    return getFileManager().findCachedViewProvider(virtualFile);
  }
@Nullable
  FileViewProvider getCachedViewProvider(@NotNull Document document)