void (@NotNull JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { super.customizeCellRenderer(tree, value, selected, expanded, leaf, row, hasFocus); myDurationText = null; myDurationColor = null; myDurationWidth = 0; myDurationLeftInset = 0; myDurationRightInset = 0; final DefaultMutableTreeNode node = (DefaultMutableTreeNode)value; final Object userObj = node.getUserObject(); if (userObj instanceof ExecutionNode) { myDurationText = ((ExecutionNode)userObj).getDuration(); if (myDurationText != null) { FontMetrics metrics = getFontMetrics(RelativeFont.SMALL.derive(getFont())); myDurationWidth = metrics.stringWidth(myDurationText); myDurationLeftInset = metrics.getHeight() / 4; myDurationRightInset = ExperimentalUI.isNewUI() ? tree.getInsets().right + JBUI.scale(4) : myDurationLeftInset; myDurationColor = selected ? getTreeSelectionForeground(hasFocus) : GRAYED_ATTRIBUTES.getFgColor(); } } }