def METHOD_NAME(self, nlimit=True):
    types = [self.psolid, self.plsolid]
    if nlimit:
        types2 = []
        for ptype in types:
            if ptype.n:
                types2.append(ptype)
        types = types2
    return types