pmd: fix #1173 Java 8 support: method references
pmd: fix #1176 ShortVariable false positive with for-each loops