LargeFileEditor (AnActionEvent e) { FileEditor fileEditor = getFileEditor(e); if (fileEditor instanceof LargeFileEditor) { return (LargeFileEditor)fileEditor; } Editor editor = getEditor(e); return editor == null ? null : tryGetLargeFileEditorManagerFromEditor(editor); }