isLeaf
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.