}
@Override
public int [] findMatches() throws BadLocationException {
Document document = context.getDocument();
MatchKeyword match = matcher.findMatch(matchID, backward);
if(match == null) {
return null;
}
int[] findMatch = match.translate();
if (findMatch != null && findMatch[2] <= document.getEndPosition().getOffset()) {
matchStartOffset = findMatch[1];
matchEndOffset = findMatch[2];
return new int [] { matchStartOffset, matchEndOffset } ;