Add an index for @type annotation