SONARJAVA-465 Replace lambdas by method references