import java.util.List; public class X { boolean test(List list) { return list.stream().map(s -> s.toLowerCase()).anyMatch(s -> s.equals("test")); } }