Refactoring type handler
Fix auto-indent for {
Refactoring: extract common method
Don't auto insert '}' after '{' in unfinished control statements