Sonar Major Warnings - Boolean Expression Complexity