@classmethod
def create(cls, pathFilter):
    visible = True
    with IECore.IgnoredExceptions(KeyError):
        visible = pathFilter.userData()['UI']['visible']
    if (not visible):
        return None
    c = pathFilter.__class__
    while (c is not None):
        creator = cls.__typesToCreators.get(c, None)
        if (creator is not None):
            return creator(pathFilter)
        c = (c.__bases__[0] if c.__bases__ else None)
    return None
@classmethod
def create(cls, pathFilter):
    visible = True
    with IECore.IgnoredExceptions(KeyError):
        visible = pathFilter.userData()['UI']['visible']
    if (not visible):
        return None
    c = pathFilter.__class__
    while (c is not None):
        creator = cls.__typesToCreators.get(c, None)
        if (creator is not None):
            return creator(pathFilter)
        c = (c.__bases__[0] if c.__bases__ else None)
    return None