private static String truncateOutput(@NotNull String output, int maxChars) {
    return output.length() < maxChars ? output : output.substring(0, maxChars) + "...";
  }
private static String truncateOutput(@NotNull String output, int maxChars)