// "Fix all 'Stream API call chain can be simplified' problems in file" "true"

import java.util.ArrayList;
import java.util.Comparator;
import java.util.Date;
import java.util.List;
import java.util.Optional;

// IDEA-188598
public class SimplifyStream {
  public void foo() {
    final Optional<Date> first = getDates()
            .stream().min(Date::compareTo);

    final Optional<Date> first2 = getDates()
            .stream().min(Comparator.naturalOrder());
  }
  public List<Date> getDates() {
    return new ArrayList<>();
  }
}