void () { if (!isLargeModel()) return; int fixedRowHeight = UIManager.getInt(JBUI.CurrentTheme.Tree.rowHeightKey()); if (fixedRowHeight > 0) return; // leave hardcoded value from BasicTreeUI.installDefaults TreeCellRenderer renderer = getCellRenderer(); if (renderer == null) return; ChangesBrowserNode<?> sampleNode = new FixedHeightSampleChangesBrowserNode(); Component component = renderer.getTreeCellRendererComponent(this, sampleNode, true, true, true, 0, true); scaleHelper.saveScaleAndRunIfChanged(() -> { if (component instanceof JComponent) scaleHelper.updateUIForAll((JComponent)component); }); int rendererHeight = component.getPreferredSize().height; if (rendererHeight <= 0) return; setRowHeight(rendererHeight); }