List<Editor> (@NotNull Project project, @NotNull VirtualFile file) { FileEditor[] editors = FileEditorManager.getInstance(project).getEditors(file); return ContainerUtil.mapNotNull(editors, fileEditor -> fileEditor instanceof TextEditor ? ((TextEditor)fileEditor).getEditor() : null); }