Resolve annotations against namespace and use statements.