def METHOD_NAME(self):
    out = set()
    if self.specification is not None:
        out.add(self.specification.name)
    elif self.details:
        for d in self.details:
            if d.specification is not None:
                out.add(d.specification.name)
    return out