override fun getChildren()

in src/main/kotlin/org/jetbrains/tinygoplugin/heapAllocations/toolWindow/model/TinyGoHeapAllocsTreeModel.kt [42:50]


    override fun getChildren(`object`: Any): List<Node> {
        val node = `object`.asSafely<Node>() ?: return emptyList()
        val children = node.getChildren()
        if (children.isEmpty()) return emptyList()
        assert(null != comparator.get()) { "set comparator before" }
        node.update()
        children.forEach { it.update() }
        return children.stream().sorted(comparator.get()).collect(Collectors.toList())
    }