N.Y. Criminal Procedure Law § 220.15
3. Before accepting a plea of not responsible by reason of mental disease or defect, the court must address the defendant in open court and determine that he understands each of the following:
5. Before accepting a plea of not responsible by reason of mental disease or defect, the court must find and state each of the following on the record in detail and not in conclusory terms: