SONARJAVA-525 : Unused Private method issues raised on lambdas

Unused private methods should not be synthetic.