private static void AddDummy(ACommand command, List <AddCommandLeafNode> children = null) { foreach (string idOrAlias in command.IdAndAliases()) { AddDummy(command, idOrAlias); } if (children != null) { children.Add(new AddCommandLeafNode(command)); } }