void (@NotNull String text, HyperlinkInfo info) { if (info instanceof DiffHyperlink.DiffHyperlinkInfo) { final DiffHyperlink diffHyperlink = ((DiffHyperlink.DiffHyperlinkInfo)info).getPrintable(); try { HashMap<String, String> attributes = new HashMap<>(); attributes.put(EXPECTED, JDOMUtil.removeControlChars(diffHyperlink.getLeft())); attributes.put(ACTUAL, JDOMUtil.removeControlChars(diffHyperlink.getRight())); startElement(DIFF, attributes); endElement(DIFF); } catch (SAXException e) { error.set(e); } } else { print(text, ConsoleViewContentType.NORMAL_OUTPUT); } }