Fix [SonarQube] Collection.isEmpty() should be used to test for
emptiness
Fix [SonarQube] Switch cases should end with an unconditional break
statement
Fix [SonarQube] TODO tags should be handled