// "Fix all 'Comparator method can be simplified' problems in file" "true"
import java.util.*;
import java.util.stream.*;

class Test {
  void test(List<String> list) {
    Collections.m<caret>ax(list, Comparator.reverseOrder());
    list.stream().min(String.CASE_INSENSITIVE_ORDER.reversed());
    list.stream().max(Collections.reverseOrder(String.CASE_INSENSITIVE_ORDER));
    list.stream().min(Collections.reverseOrder());
    List<Object> list2 = Arrays.asList("a", "b", "c");
    list2.stream().min(Collections.reverseOrder());
    Collector<String, ?, Optional<String>> c = Collectors.maxBy(Comparator.comparing(String::length, Comparator.reverseOrder()));
  }
}