Added class level check in the annotation processor.