isLeaf

open override fun isLeaf(node: Any): Boolean(source)

Returns true if and only if node is contained in this model and node does not have children.

Throws an exception if node is not a StateNode.

Unlike methods such as getChild, this method does not throw an exception if node is not contained in this model, because com.intellij.ui.tree.ui.DefaultTreeUI calls this method on non-nodes during drag-and-drop.