// "Extract variable 'lowerCase' to 'map' operation" "true-preview"
import java.util.*;
import java.util.stream.*;

public class Test {
  boolean test(List<String> list) {
    return list.stream().map(String::toLowerCase)
            .anyMatch(lowerCase -> "test".equals(lowerCase));
  }
}