private void drawObjectStatistics(@NotNull GC gc, @NotNull DBNDatabaseNode node, @NotNull Rectangle bounds, @NotNull Event event) {
        if (bounds.width < PERCENT_FILL_WIDTH) {
            return;
        }

        ObjectStatistics statistics = getObjectStatistics(node, event);
        if (statistics == null) {
            return;
        }

        String text;
        int percentFull;

        if (statistics instanceof ObjectStatistics.Known known) {
            text = known.format.format(known.statObjectSize);
            percentFull = known.maxObjectSize == 0 ? 0 : (int) (known.statObjectSize * 100 / known.maxObjectSize);
        } else {
            text = "...";
            percentFull = 0;
        }

        Point textSize = gc.textExtent(text);
        Tree tree = (Tree) event.widget;

        // Frame
        gc.setForeground(NavigatorThemeSettings.instance.statisticsFrameColor);
        gc.drawRectangle(bounds.x + bounds.width - PERCENT_FILL_WIDTH, bounds.y + 1, PERCENT_FILL_WIDTH, bounds.height - 3);

        // Bar
        int width = Math.max((int) Math.ceil((PERCENT_FILL_WIDTH - 3) * percentFull / 100.0), 1);
        gc.setBackground(NavigatorThemeSettings.instance.statisticsFrameColor);
        gc.fillRectangle(bounds.x + bounds.width - PERCENT_FILL_WIDTH + 2, bounds.y + 3, width, bounds.height - 6);

        // Text
        if (UIStyles.isDarkHighContrastTheme() && PERCENT_FILL_WIDTH - width < PERCENT_FILL_WIDTH / 2) {
            gc.setForeground(tree.getBackground());
        } else {
            if (CommonUtils.isBitSet(event.detail, SWT.SELECTED)) {
                gc.setForeground(UIStyles.getDefaultTextSelectionForeground());
            } else {
                gc.setForeground(tree.getForeground());
            }
        }
        gc.setFont(tree.getFont());
        gc.drawText(text, bounds.x + bounds.width - textSize.x, bounds.y + (bounds.height - textSize.y) / 2, true);

        bounds.width -= PERCENT_FILL_WIDTH + ELEMENT_MARGIN;
    }
Statistics node renderer.
Draws connection type marker next to the item name.
Draws item statistics in the right part.
plugins/org.jkiss.dbeaver.ui.navigator/src/org/jkiss/dbeaver/ui/navigator/database/StatisticsNavigatorNodeRenderer.java