List<MessageTreeNode> (XDebuggerTree tree, final XDebuggerTreeNode parent, @NotNull String errorMessage, XDebuggerTreeNodeHyperlink link, final Icon icon, final SimpleTextAttributes attributes) { List<MessageTreeNode> messages = new SmartList<>(); final List<String> lines = StringUtil.split(errorMessage, "\n", true, false); for (int i = 0; i < lines.size(); i++) { messages.add(new MessageTreeNode(tree, parent, lines.get(i), attributes, icon, i == lines.size() - 1 ? link : null)); } return messages; }