def __new__(mcs, name, bases, dct):
    """Collect all ``Item`` instances and add them to the new class."""
    cls = type.__new__(mcs, name, bases, dct)
    if mcs.__node_base__ is None:
        mcs.__node_base__ = cls
    return cls
