TextAttributes (FindResult range) { if (mySearchResults.isExcluded(range)) { return myPresentation.getExcludedAttributes(); } else if (range.isEmpty()) { return myPresentation.getEmptyRangeAttributes(); } else { return myPresentation.getDefaultAttributes(); } }