private void insertTextAtCursor(String text) {
        try {
            IDocument document = viewerComponent.getDocument();
            int modelPosition = TextRenderingUtils.widgetOffset2ModelOffset(viewerComponent, activeHint.getPosition());
            document.replace(modelPosition, 0, text);
            getTextWidget().setCaretOffset(activeHint.getPosition() + text.length());
        } catch (Exception ignored) {
        }
    }
Disables the suggestion text painter functionality.

@param clearContent if true, removes any displayed hint before disabling the painter.
plugins/org.jkiss.dbeaver.ui.editors.sql/src/org/jkiss/dbeaver/ui/editors/sql/suggestion/SQLSuggestionTextPainter.java