public void disable(boolean clearContent) {
        if (!isEnabled) {
            return;
        }
        if (clearContent) {
            removeHint();
        }
        StyledText textWidget = getTextWidget();
        textWidget.removePaintListener(this);
        textWidget.removeLineBackgroundListener(this);
        viewerComponent.getDocument().removePositionUpdater(updater);
        try {
            viewerComponent.getDocument().removePositionCategory(HINT_CATEGORY);
        } catch (BadPositionCategoryException ignored) {
        }
        currentState = RenderState.IDLE;
        isEnabled = false;
    }
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