Chris Brown leaving the H. Carl Moultrie Courthouse. (Mark Gail/For The Washington Post)

Looks like someone has finally convinced Chris Brown to do something about his volatile lifestyle — because the pop star has checked into rehab for anger management.

The self-imposed stint in a California treatment facility comes on the heels of Brown’s arrest Sunday in Washington for allegedly punching a man in front of the W Hotel.  His lawyer, Mark Geragos, said rehab was not an admission of guilt, but that the musician may have been sobered by his unexpected stay in a D.C. holding cell.

“Why now?” Geragos told the Daily News. “People have realizations at various times. Maybe sitting in a jail cell for 36 hours for something you didn’t do is enough to rock you a bit.” The lawyer said he talked to Brown Tuesday and that he wanted “to take some time and do a little introspection and understand everything that’s going on around me.”

Whether this impresses judges in D.C. and L.A. is unclear — but we’ll find out in his court dates next month.