contributions or nonelective contributions, or (III) consists of an employee stock ownership plan (within the meaning of section 4975(e)(7)) or a tax credit employee stock ownership plan (within the meaning of section 409(a)). (ii) Special rules for matching contributions For purposes of clause (i), if a defined benefit plan is aggregated with a portion of a defined contribution plan providing matching contributions— (I) such defined benefit plan must also be aggregated with any portion of such defined contribution plan which provides elective deferrals described in subparagraph (A) or (C) of section 402(g)(3), and (II) such matching contributions shall be treated in the same manner as nonelective contributions, including for purposes of applying the rules of subsection (l). (iii) Plans described A defined benefit plan is described in this clause if— (I) the plan provides benefits to a closed class of participants, (II) for the plan year as of which the class closes and the 2 succeeding plan years, the plan satisfies the requirements of section 410(b) and subsection (a)(4) (without regard to this subparagraph but taking into account the rules of subparagraph (I)), (III) after the date as of which the class was closed, any plan amendment which modifies the closed class or the benefits provided to such closed class does not discriminate significantly in favor of highly compensated employees, and (IV) the class was closed before September 21, 2016, or the plan is described in subparagraph (C). (C) Plans described A plan is described in this subparagraph if, taking into account any predecessor plan— (i) such plan has been in effect for at least 5 years as of the date the class is closed, and (ii) during the 5-year period preceding the date the class is closed, there has not been a substantial increase in the coverage or value of the benefits, rights, or features described in subparagraph (A) or in the coverage or benefits under the plan described in subparagraph (B)(iii) (whichever is applicable). (D) Determination