refactor UnopenedNamespacesResolver