private static void reload(@NotNull VirtualFile virtualFile, @NotNull Project project, @NotNull FileDocumentManagerImpl documentManager) {
    ApplicationManager.getApplication().runWriteAction(() -> {
      try (AccessToken ignored = ProjectLocator.withPreferredProject(virtualFile, project)) {
        documentManager.contentsChanged(new VFileContentChangeEvent(null, virtualFile, 0, 0));
      }
    });
  }
private static void reload(@NotNull VirtualFile virtualFile, @NotNull Project project, @NotNull FileDocumentManagerImpl documentManager)