// "Insert '.test' to call functional interface method" "true-preview"
import java.util.function.Function;
import java.util.function.Predicate;

public class Test {
  public void test(Predicate<String> predicate) {
    if(predi<caret>cate("foo")) {

    }
  }
}