Support annotations in TypeNameCheck

Support checking the type name of annotation types. Until now, only classes, interfaces, and enums can be checked.