SONARJAVA-455 Anonymous class with one method should be lambda