// "Replace 'collect(minBy())' with 'min()' (may change semantics when result is null)" "true" import java.util.List; import java.util.stream.Collectors; public class Main { public Optional min(List data) { return data.stream().filter(x -> x.startsWith("xyz")).collect(Collectors.minBy(String.CASE_INSENSITIVE_ORDER)); } }