<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_for_model(self, ModelClass):
 """ Return the URL type for a given model class """

        for urltype in self._url_types:
            if urltype.model is ModelClass:
                return urltype
        return None