annotations: Metamodel: Remove unused imports and methods, and access the declaration of the annotation type via getDeclaration() so that checkInit() gets called.