Component (JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { final Component result = myDefaultCellRenderer.getTreeCellRendererComponent(tree, value, selected, expanded, leaf, row, hasFocus); final TreePath path = tree.getPathForRow(row); if (path == null) return result; TreeNodeOnVcsRevision node = row >= 0 ? ((TreeNodeOnVcsRevision)path.getLastPathComponent()) : null; if (node != null) { if (myHistorySession.get().isCurrentRevision(node.getRevision().getRevisionNumber())) { makeBold(result); } if (!selected && myHistorySession.get().isCurrentRevision(node.getRevision().getRevisionNumber())) { result.setBackground(new JBColor(new Color(188, 227, 231), new Color(188, 227, 231))); } ((JComponent)result).setOpaque(false); } else if (selected) { result.setBackground(UIUtil.getTableSelectionBackground(true)); } else { result.setBackground(UIUtil.getTableBackground()); } return result; }