@Override
      public void cancel(@NotNull Function<? super String, String> onHide) {
        field.setText(onHide.fun(popup.getText()));
        Editor editor = field.getEditor();
        if (editor != null) copyCaretPosition(editor, popup.getEditor(), onHide);
        if (editor instanceof EditorEx) updateFieldFolding((EditorEx)editor);
      }
@Override
      public void cancel(@NotNull Function<? super String, String> onHide)