boolean (@NotNull Editor editor, @NotNull Caret caret, DataContext dataContext) { return getEnterHandler().isEnabled(editor, caret, dataContext) && !((EditorEx)editor).isEmbeddedIntoDialogWrapper(); }