def METHOD_NAME(self, p1, dist):
    result = []
    for p2 in self.system.part.all():
        if p1.id != p2.id and self.system.distance(p1, p2) <= dist:
            result.append(p2.id)
    return result