Matcher matcher = URL_PATTERN.matcher(message);
int pos = 0;
while (matcher.find(pos)) {
print(console, message.substring(pos, matcher.start()), textAttributes);
console.printHyperlink(matcher.group(), new BrowserHyperlinkInfo(matcher.group()));
pos = matcher.end();
}
print(console, message.substring(pos), textAttributes);
console.print("\n", textAttributes);
}