Component (@NotNull JTree tree, @Nullable Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean focused) { configure(tree, tree.convertValueToText(value, selected, expanded, leaf, row, focused)); setForeground(RenderingUtil.getForeground(tree, selected)); setBackground(RenderingUtil.getBackground(tree, selected)); setBorder(EMPTY); return this; }