public static @NlsSafe @NotNull String formatTimeWithSeconds(long time) {
    return formats().timeMedium().format(toZoned(time));
  }
public static @NlsSafe @NotNull String formatTimeWithSeconds(long time)