core/src/main/java/com/google/errorprone/bugpatterns/CheckReturnValue.java
@Override
  public Matcher<ExpressionTree> specializedMatcher() {
    return (tree, state) ->
        methodToInspect(tree)
            .map(method -> evaluator.evaluate(method, state))
            .orElse(OPTIONAL)
            .equals(EXPECTED);
  }
/**
   * Return a matcher for method invocations in which the method being called should be considered
   * must-be-used.
   */
Return a matcher for method invocations in which the method being called should be considered
must-be-used.
Return a matcher for method invocations in which the method being called should be considered must - be - used .
@Override
  public Matcher<ExpressionTree> specializedMatcher() {
    return (tree, state) ->
        methodToInspect(tree)
            .map(method -> evaluator.evaluate(method, state))
            .orElse(OPTIONAL)
            .equals(EXPECTED);
  }
@ Override public Matcher < ExpressionTree > specializedMatcher ( ) { return ( tree , state ) -> methodToInspect ( tree ) . map ( method -> evaluator . evaluate ( method , state ) ) . orElse ( OPTIONAL ) . equals ( EXPECTED ) ; }
Return a matcher for method invocations in which the method being called should be considered
 must-be-used.
Return a matcher for method invocations in which the method being called should be considered must - be - used .