public static void clearPsiCaches(@NotNull FileViewProvider viewProvider) {
    ((AbstractFileViewProvider)viewProvider).getCachedPsiFiles().forEach(PsiFile::clearCaches);
  }
public static void clearPsiCaches(@NotNull FileViewProvider viewProvider)