@classmethod
def reset_next_id(cls):
    """
		If the current value of the next_id class attribute is not
		None then set it to 0, otherwise it is left unmodified.

		Example:

		>>> from ligo.lw import lsctables
		>>> for cls in lsctables.TableByName.values(): cls.reset_next_id()
		"""
    if cls.next_id is not None:
        cls.set_next_id(0)
