private static void updateColors(@NotNull JComponent component, @NotNull JTable table, boolean isSelected) {
    component.setOpaque(isSelected);
    component.setBackground(RenderingUtil.getBackground(table, isSelected));
    if (!(component instanceof ColoredLabel) || isSelected) {
      component.setForeground(RenderingUtil.getForeground(table, isSelected));
    }
  }
private static void updateColors(@NotNull JComponent component, @NotNull JTable table, boolean isSelected)