private @NonNull List<@NonNull CommandComponent<?>> getComponentChain(
            final @NonNull CommandNode<C> end
    ) {
        return this.getChain(end).stream()
                .map(CommandNode::component)
                .filter(Objects::nonNull)
                .collect(Collectors.toList());
    }
Returns an ordered list containing the chain of components that leads up to the given {@code end} node.

@param end the end node
@return the list of components leading up to the {@code end} node
cloud-core/src/main/java/org/incendo/cloud/CommandTree.java