<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _next_tab_stop(self):
 """ Return the x value of the next available tabstop or the x value of the margin if there are no more tabstops. """


        for stop in sorted(self.tabstops):
            if self.x < stop:
                return stop
        return self.size[1] - 1