@Override
    public IRegion getHoverRegion(ITextViewer textViewer, int offset) {
        return SQLWordFinder.findWord(textViewer.getDocument(), offset);
    }
Associates a SQL editor with this hover. Subclass can cache it for later use.
plugins/org.jkiss.dbeaver.ui.editors.sql/src/org/jkiss/dbeaver/ui/editors/sql/util/AbstractSQLEditorTextHover.java