String word = wordFinder.extractWord(cocoWordRegion);
if (word == null) {
return null;
}
ATGSegment segment = fATGModel.find(word);
Region wordRegion = new Region(cocoWordRegion.getOffset(), cocoWordRegion.getLength());
if (segment != null) {
return new IHyperlink[] { new ATGHyperlink(wordRegion, new Region(segment.getRegion().getOffset(), segment.getRegion().getLength()))};
}