static @Nullable FileViewProvider findViewProvider(final VirtualFile file, final Project project) {
    if (file == null || file.isDirectory()) return null;
    return PsiManager.getInstance(project).findViewProvider(file);
  }
static @Nullable FileViewProvider findViewProvider(final VirtualFile file, final Project project)