protected function updateSubInterfaceInheritance($interface)
    {
        foreach ($interface->implementedBy as $subInterface) {
            if (isset($this->interfaces[$subInterface])) {
                $subInterface = $this->interfaces[$subInterface];
                $subInterface->methods = array_merge($interface->methods, $subInterface->methods);
                $this->updateSubInterfaceInheritance($subInterface);
            }
        }
    }