private String extractCurrentWord() {
        StyledText widget = getTextWidget();
        int position = getCursorPosition();
        String lineContent = widget.getText().substring(0, position);
        int separator = Math.max(lineContent.lastIndexOf(' '), lineContent.lastIndexOf('\t'));
        return separator >= 0 ? lineContent.substring(separator + 1) : lineContent;
    }
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