Fix #1223 UnusedPrivateMethod: Java 8 method reference causing false positives