SONARJAVA-418 Rework Literal Boolean Check