N.Y. Comp. Codes R. & Regs. tit. 22, § 152.1
(a) Following consultation with and agreement of the presiding justice of the appropriate Appellate Division, the Chief Administrator of the Courts may establish mental health parts in Supreme Court or County Court ("Superior Court mental health parts") in any county and assign one or more justices or judges to preside therein. Each Superior Court mental health part shall have as its purpose the hearing and determination of:
(b) Where necessary to best utilize available court and community resources for actions or proceedings involving defendants with mental heath problems, the Chief Administrator of the Courts may establish mental health parts in one or more City or District Courts or Town or Village Justice Courts ("local court mental health parts") in such county, and assign one or more justices or judges to preside therein. Each local court mental health part shall have as its purpose the hearing and determination of: