@Override
    public boolean isEnabledForCaret(@NotNull Editor editor, @NotNull Caret caret, DataContext dataContext) {
      if (editor instanceof EditorWindow && editor.isOneLineMode()) {
        // One-line injection: prefer for host instead
        return false;
      }
      return getEnterHandler().isEnabled(editor, caret, dataContext);
    }
@Override
    public boolean isEnabledForCaret(@NotNull Editor editor, @NotNull Caret caret, DataContext dataContext)