(a)(1) The right of any judge, family support magistrate or administrative law judge retiring prior to July 1, 2022, to a retirement salary in accordance with the provisions of this section shall vest and be nonforfeitable when the judge, family support magistrate or administrative law judge has attained the age of sixty-five years, or has served twenty years as a judge, a family support magistrate or an administrative law judge or has thirty years of state service credit under the provisions of chapter 66, provided not less than ten years of such state service was served as a judge, a family support magistrate or an administrative law judge, and provided such state service shall not be used for retirement credit under chapter 66. Any contributions made under chapter 66 shall be transferred to the Judges, Family Support Magistrates and Administrative Law Judges Retirement Fund.

(2) Any judge, family support magistrate or administrative law judge who has been refunded contributions from the State Employees Retirement Fund for any prior period of state service may receive credit for such service upon repayment of such refunded contributions with interest thereon at the rate of five per cent per year from the date of refund to the date of payment. The amount of such payment shall be transferred to the judges, family support magistrates and administrative law judges retirement system. A judge, a family support magistrate or an administrative law judge may elect to retire at any time thereafter.

(3) Notwithstanding any provision of the general statutes, any judge who has served for at least sixteen years as a judge and was nominated by the Governor for a subsequent term but was not reappointed and who has attained sixty-three years of age, shall be eligible to receive a retirement salary effective upon the expiration of his term as a judge. The retirement salary shall be in the amount equal to the fraction of the retirement salary such judge would have received had he served until he was eligible to retire which corresponds to the ratio which the number of years of his completed service bears to the number of years of service which would have been completed at age sixty-five or twenty years, whichever is less.

(b) Each justice or judge or family support magistrate who retired while holding judicial office shall receive annually as retirement salary an amount in accordance with the provisions of § 51-50; and each administrative law judge who first commenced service as an administrative law judge prior to January 1, 1981, shall receive, annually, as retirement salary, two-thirds of the salary of an administrative law judge, and each administrative law judge who first commenced service as an administrative law judge on or after January 1, 1981, shall receive, annually, as retirement salary, two-thirds of the salary the administrative law judge was receiving at the time of his or her retirement; except that, if a judge, a family support magistrate or an administrative law judge has served fewer than ten years at the time of his retirement under this section, his retirement salary shall be reduced in the ratio which the number of years of his completed service bears to the number of years of service which would have been completed at age seventy, or ten years, whichever is less.