if (wicketRegions == null) {
return null;
}
wicketIdRegion = wicketRegions[0];
} else if (isHtmlFile) {
QWickieHtmlHyperlinkDetector detector = new QWickieHtmlHyperlinkDetector();
wicketIdRegion = detector.findWicketId(document, textSelection.getOffset());
}
if (wicketIdRegion == null) {
return null;
}