void (JComponent component) { super.customizeListRendererComponent(component); component.setBorder(getList().getComponentOrientation().isLeftToRight() ? JBUI.Borders.empty(0, 5, 0, 1) : JBUI.Borders.empty(0, 1, 0, 5)); }