Added support for annotation inheritance.