Mental health providers often have ideas and solutions for how to keep someone struggling with a mental illness out of the justice system. It can be an attorney’s job to translate a proper plan of treatment to a court so the judge may have hope that it is safe to commit someone accused of or convicted of a crime to community treatment and probation.