add define method support for annotations