@ApiStatus.Internal
  public void forEachCachedDocument(@NotNull Consumer<? super @NotNull Document> consumer) {
    ConcurrentMap<VirtualFile, FileViewProvider> map = myVFileToViewProviderMap.get();
    if (map != null) {
      map.keySet().forEach(virtualFile -> {
        Document document = FileDocumentManager.getInstance().getCachedDocument(virtualFile);
        if (document != null) {
          consumer.accept(document);
        }
      });
    }
  }
@ApiStatus.Internal
  public void forEachCachedDocument(@NotNull Consumer<? super @NotNull Document> consumer)