private static void linesToSb(final StringBuilder sb, final List<String> list, boolean withEndLineBreak) {
    StringUtil.join(list, "\n", sb);
    if (!list.isEmpty() && withEndLineBreak) {
      sb.append('\n');
    }
  }
private static void linesToSb(final StringBuilder sb, final List<String> list, boolean withEndLineBreak)