A person may be convicted in an appropriate criminal court of a particular county, of an offense of which the criminal courts of this state have jurisdiction pursuant to section 20.20, committed either by his or her own conduct or by the conduct of another for which he or she is legally accountable pursuant to section 20.00 of the penal law, when:
N.Y. Crim. Proc. Law ยง 20.40