Switch annotation mapping to class static method for validator