void (@NotNull HyperlinkEvent e) { URL url = e.getURL(); if (url != null) { BrowserUtil.browse(url); // e.getURL() provides href with base URL if <base> tag is added in a document } else { BrowserUtil.browse(e.getDescription()); } }