void () { doTest( """ import com.google.errorprone.annotations.CanIgnoreReturnValue; import com.google.errorprone.annotations.CheckReturnValue; @CheckReturnValue class Test { static int lookAtMe() { return 1; } @CanIgnoreReturnValue static int ignoreMe() { return 2; } void run() { /*Result of 'Test.lookAtMe()' is ignored*/lookAtMe/**/(); // <- inspection\s ignoreMe(); // <- also inspection } } """); }