Format (@Nullable String lineSeparator) { if (lineSeparator == null || lineSeparator.equals("\n")) { return DEFAULT_FORMAT; } return Format.getCompactFormat() .setIndent(" ") .setTextMode(Format.TextMode.TRIM) .setLineSeparator(lineSeparator); }