@Override
    public Object getHoverInfo(ISourceViewer sourceViewer, ILineRange lineRange, int visibleNumberOfLines) {
        try {
            Integer anchorLine = lineRange.getNumberOfLines() == 1 ? lineRange.getStartLine() : null;
            IRegion lineRegion = sourceViewer.getDocument().getLineInformation(lineRange.getStartLine());
            return this.getHoverInfoImpl(sourceViewer, lineRegion, anchorLine);
        } catch (BadLocationException e) {
            log.debug(e);
            return null;
        }
    }
Show info from annotations on the specified line
plugins/org.jkiss.dbeaver.ui.editors.sql/src/org/jkiss/dbeaver/ui/editors/sql/util/SQLAnnotationHover.java