@Override
    public void paintNodeDetails(DBNNode node, Tree tree, GC gc, Event event) {
        super.paintNodeDetails(node, tree, gc, event);

        if (!(node instanceof DBNDatabaseNode databaseNode)) {
            return;
        }

        Rectangle client = getClientArea(tree);
        Rectangle item = getItemBounds(client, (TreeItem) event.item);

        boolean hovering = (event.detail & SWT.HOT) != 0;

        DBPPreferenceStore store = DBWorkbench.getPlatform().getPreferenceStore();

        if (node instanceof DBNDataSource dataSourceNode) {
            if (store.getBoolean(NavigatorPreferences.NAVIGATOR_SHOW_NODE_ACTIONS)) {
                drawDataSourceActions(gc, dataSourceNode, item, client, hovering);
            }
            if (store.getBoolean(NavigatorPreferences.NAVIGATOR_SHOW_CONNECTION_HOST_NAME)) {
                drawDataSourceAddress(gc, dataSourceNode, item);
            }
        } else {
            if (store.getBoolean(NavigatorPreferences.NAVIGATOR_SHOW_STATISTICS_INFO)) {
                drawObjectStatistics(gc, databaseNode, item, event);
            }
            if (node instanceof DBNDatabaseFolder && store.getBoolean(NavigatorPreferences.NAVIGATOR_SHOW_CHILD_COUNT) && !databaseNode.needsInitialization()) {
                drawObjectChildrenCounter(gc, databaseNode, item);
            }
            if (node instanceof DBNDatabaseItem && store.getBoolean(NavigatorPreferences.NAVIGATOR_SHOW_OBJECTS_DESCRIPTION)) {
                drawObjectDescription(gc, databaseNode, item);
            }
        }
    }
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