def check_parent(cls, parent): return IFeatureLayer.providedBy(parent)
def is_layer_supported(cls, layer): return IFeatureLayer.providedBy(layer)