The State's Attorney or Attorney General may settle the action with the defendant notwithstanding the objections of the person initiating the action if the court determines, after a hearing, that the proposed settlement is fair, adequate, and reasonable under all the circumstances. Upon a showing of good cause, the hearing may be held in camera.
Upon a showing by the State's Attorney or Attorney General that unrestricted participation during the course of the litigation by the person initiating the action would interfere with or unduly delay the State's Attorney's or Attorney General's prosecution of the case, or would be repetitious, irrelevant, or for purposes of harassment, the court may, in its discretion, impose limitations on the person's participation, including, but not limited to, the following:
Upon a showing by the defendant that unrestricted participation during the course of the litigation by the person initiating the action would be for purposes of harassment or would cause the defendant undue burden or unnecessary expense, the court may limit the participation by the person in the litigation.
740 ILCS 92/20