private void AddToLastContainer(ICollection <IStatement> outputs, List <IStatement> containers, IStatement ist) { if (containers.Count == 0) { outputs.Add(ist); } else { IStatement container = containers[containers.Count - 1]; Containers.AddToContainer(container, ist); } }