private static void drawTextSegment(@NotNull GC gc, @NotNull String text, @NotNull Rectangle bounds) {
        Point extent = gc.textExtent(text);
        gc.drawText(text, bounds.x, bounds.y + (bounds.height - extent.y) / 2, true);
        bounds.x += extent.x;
        bounds.width -= extent.x;
    }
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