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