protected function removeAliasFor($key)
    {
        $aliases = \array_keys($this->aliases, $key);

        if (!empty($aliases)) {
            foreach ($aliases as $alias) {
                unset($this->aliases[$alias]);
            }
        }
    }