Why is this needed? I think it would be cleaner to have visitAnotatedClassElement ensure that it only contains get/set/method.