(2) In ruling on a motion by a defendant for severance, the court may order the prosecution to deliver to the court for inspection in camera any statements or confessions made by any defendant that the prosecution intends to introduce in evidence at the trial. [Amended by 1983 c.705 §1; 1987 c.2 §6]