HighlightResult highlightResults = null;
if (highlight != null) {
highlightResults = highlight.getHighlights(viewRow);
}
ColourPair rowColour = highlightResults != null ? highlightResults.getRow() : null;
if (rowColour != null) {
seperator = this.seperator.changeColour(rowColour);
} else {
seperator = this.seperator;
}
MultiColourString gridRow = new MultiColourString();
boolean firstColumn = true;
for (int i = 0; i < l; i++) {
String currentColumn = columns.get(i);
ColourPair columnColour = rowColour;
if (highlightResults != null) {
ColourPair newPair = highlightResults.getColumnHighlight(currentColumn);
if (newPair != null) {
columnColour = newPair;
}
}