[Ide] Improved bracket auto insertion.