Adding annotations to inner class.