For purposes of the calculation of retirement benefits, in the event that any justice or judge of the supreme court, the superior court, the family court, or the district court participates or acquiesces in a state shutdown or in a reduced salary or a salary deferral plan consistent with any such plan imposed upon or agreed to by other state employees, his or her annual salary shall be calculated as if he or she had not participated or acquiesced in any such shutdown or plan.
R.I. Gen. Laws § 8-3-18