@API(status = API.Status.INTERNAL)
    public @NonNull List<@NonNull CommandNode<C>> getLeaves(
            final @NonNull CommandNode<C> node
    ) {
        return this.getLeavesRaw(node).stream()
                .filter(n -> n.component() != null)
                .collect(Collectors.toList());
    }
Returns all leaf nodes attached to the given {@code node} or its children.

@param node the node
@return the leaf nodes attached to the node
cloud-core/src/main/java/org/incendo/cloud/CommandTree.java