BracesFixer - fix #543

BracesFixer - fix #543
Maybe this would be more readable extracted to a separate private function?