add define_code_check_methods method to type model