Add some verifications for setter methods and other class methods