if (isSelected) {
if (!(keepForeground)) {
result.setForeground(table.getSelectionForeground());
}
result.setBackground(table.getSelectionBackground());
<BUG>} else

{</BUG>
if (!(keepForeground)) {
result.setForeground(table.getForeground());

if (isSelected) {
if (!(keepForeground)) {
result.setForeground(table.getSelectionForeground());
}
result.setBackground(table.getSelectionBackground());
} else {
if (!(keepForeground)) {
result.setForeground(table.getForeground());
