Replace another Java 8 method.