public static @NotNull Format createFormat(@Nullable String lineSeparator) {
    if (lineSeparator == null || lineSeparator.equals("\n")) {
      return DEFAULT_FORMAT;
    }

    return Format.getCompactFormat()
      .setIndent("  ")
      .setTextMode(Format.TextMode.TRIM)
      .setLineSeparator(lineSeparator);
  }
public static @NotNull Format createFormat(@Nullable String lineSeparator)