public function canContainSubtree(Context $child) { $types = $child->getContextTypesFromTree(); return $this->canContainChildrenOfTypes($types); }