modelize: add and use method `collect_attr_propdef`