def get_refs(self, recursive=False):
        if recursive:
            conds_refs = self.refs + sum((c.get_refs(True) for c in self.conds), [])
            if self.consequent:
                conds_refs.extend(self.consequent.get_refs(True))
            return conds_refs
        else:
            return self.refs
override selection callback
dataset/ETHPy150Open nltk/nltk/nltk/sem/drt.py/DRS.get_refs--crossover with--dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.5/extras/completion/py/maya/app/general/adjustBackgroundImageWin.py/TadjustBackgroundImageWin.onSelectionChanged