void (SliceNode root, @NonNls String dataExpected) { String dataActual = EntryStream.ofTree(root, (depth, node) -> StreamEx.of(node.getChildren()).sorted(SliceTreeBuilder.SLICE_NODE_COMPARATOR)) .skip(1) .mapKeyValue((depth, node) -> { node.getValue().updateCachedPresentation(); String s = StringUtil.repeat(" ", depth - 1) + node + "\n"; return s.replace(FontUtil.thinSpace(), ""); }) .joining(); assertEquals(dataExpected, dataActual); }