public static List<TraceElement> sortedByTime(@NotNull Collection<? extends TraceElement> values) {
    return values.stream().sorted(Comparator.comparing(TraceElement::getTime)).collect(Collectors.toList());
  }
public static List<TraceElement> sortedByTime(@NotNull Collection<? extends TraceElement> values)