def METHOD_NAME(self):
    """
    This will collect the references from referral moves:
        - Reversal moves
        - Partial payments
    """
    self.ensure_one()
    references = []
    # Build a recordset to gather moves from which references have already
    # taken in order to avoid duplicates
    reference_moves = self.env["account.move"].browse()
    # If we have credit note(s) - reversal_move_id is a one2many
    if self.move_id.reversal_move_id:
        references.extend(
            [
                move.payment_reference or move.ref
                for move in self.move_id.reversal_move_id
                if move.payment_reference or move.ref
            ]
        )
        reference_moves |= self.move_id.reversal_move_id
    # Retrieve partial payments - e.g.: manual credit notes
    for (
        _,
        _,
        payment_move_line,
    ) in self.move_id._get_reconciled_invoices_partials():
        payment_move = payment_move_line.move_id
        if payment_move not in reference_moves and (
            payment_move.payment_reference or payment_move.ref
        ):
            references.append(payment_move.payment_reference or payment_move.ref)
    return references