void () { FileEditorManager fileEditorManager = FileEditorManager.getInstance(myProject); List<VirtualFile> openFiles = fileEditorManager.getOpenFilesWithRemotes(); for (VirtualFile openFile : openFiles) { FileEditor[] allEditors = fileEditorManager.getAllEditors(openFile); PsiFile psiFile = ReadAction.compute(() -> openFile.isValid() ? PsiManager.getInstance(myProject).findFile(openFile) : null); if (psiFile == null || !psiFile.isPhysical()) return; for (FileEditor fileEditor : allEditors) { if (fileEditor instanceof TextEditor textEditor) { Editor editor = textEditor.getEditor(); callShowLater(editor, psiFile); } } } }