The StopDialogue() have been omitted, but you can achieve exactly the same thing, by calling something like: GetComponent<DialogueTreeController>().StopBehaviour() .
Regardless, I have just added StopDialogue() method in DialogueTreeController for consistency purposes, although, simply calling StopBehaviour(), is exactly the same.