Fix [SonarQube] if/else/for/while/do statements should always use curly
braces
Fix [SonarQube] Local variables should not shadow class fields (Rename
local variable exclude to excludedSet)