private void drawObjectChildrenCounter(@NotNull GC gc, @NotNull DBNDatabaseNode node, @NotNull Rectangle bounds) {
        int childCount = 0;
        try {
            childCount = node.getChildren(new LocalCacheProgressMonitor(new VoidProgressMonitor())).length;
        } catch (DBException e) {
            return;
        }
        String text = "(" + childCount + ")";
        drawText(gc, text, bounds);
    }
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