(2) If the incompetency to stand trial or to proceed is due to intellectual disability or autism, the court shall dismiss the charges within a reasonable time after such determination, not to exceed 2 years for felony charges and 1 year for misdemeanor charges, unless the court specifies in its order the reasons for believing that the defendant will become competent within the foreseeable future and specifies the time within which the defendant is expected to become competent. The dismissal shall be without prejudice to the state to refile should the defendant be declared competent to proceed in the future.
(2) If the continuing incompetency is due to intellectual disability or autism, and the defendant either lacks the ability to provide for his or her well-being or is likely to physically injure himself or herself, or others, the defendant may be involuntarily admitted to residential services as provided by law.






