pmd: verify #1173 Java 8 support: method references
pmd: fix #1170 false positive with switch in loop