WordRule generateKeywordRule(IProject project) {
IToken keyword = new Token(getBoldTextAttribute(apexCodeColorProvider.getColor(ApexCodeColorProvider.KEYWORD)));
IToken other = new Token(new TextAttribute(apexCodeColorProvider.getColor(ApexCodeColorProvider.DEFAULT)));
// Add word rule for keywords, types, and constants.
WordRule wordRule = new WordRule(new ApexCodeWordDetector(), other);
if (Utils.isNotEmpty(triggerOperations)) {
for (String triggerOperation : triggerOperations) {
wordRule.addWord(triggerOperation, keyword);
}