private int getAnnotationSeverity(@NotNull Annotation anno) {
            if (anno instanceof MarkerAnnotation ma) {
                try {
                    return ma.getMarker().getAttribute(IMarker.SEVERITY) instanceof Integer n ? n : IMarker.SEVERITY_INFO;
                } catch (CoreException e) {
                    log.error("Failed to obtain annotation severity icon", e);
                    return UNKNOWN_SEVERITY;
                }
            } else { // marker-less annotation
                return IMarker.SEVERITY_INFO;
            }
        }
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