private void removePhysicalChildrenFrom(List <IContainer> allPhysicalContainers, Organism organism, string organName) { var organ = organism.Organ(organName); if (organ == null) { return; } organ.GetChildren <IContainer>(x => x.Mode == ContainerMode.Physical) .Each(c => allPhysicalContainers.Remove(c)); }