If you are not charged, why are you going to court?
Well, I would want to have good legal advice, before and during making any detailed statements to police. Not “family lawyer,” but, an accomplished criminal defense attorney. (Been there; done that.)
Depending upon the circumstances, I may want to say NOTHING to the police, which is a way to legally protect myself, but is also a quick ticket to the lock-up, to be printed, photographed, and booked, until the police sort-out what they do know. (I have seen this happen, at the scene of a “good shoot.” I was the officer selected/ordered to transport him to the lock-up.) One may need a lawyer, to file any necessary writs, while one is being silent, at the lock-up.
One may be lucky enough to be released, at the scene, without charges, pending grand jury review of the case. One WILL want to consult a lawyer, before facing a grand jury. The lawyer may not be able to enter the grand jury room, but, believe me, one will want to enter that place with the best possible legal advice already well-established inside one’s brain. In my case, a thorough knowledge of Mas Ayoob’s books probably helped more than my attorney’s advice, but one little nugget, from the attorney, just before I walked in there, was also important.