void (@NotNull JComponent component, boolean hovered) { Color bgColor = hovered ? JBUI.CurrentTheme.Table.Hover.background(true) : UIUtil.getTableBackground(false, false); UIUtil.setOpaqueRecursively(component, false); component.setOpaque(true); component.setBackground(bgColor); }