docs: public static String reduceLineBreaks(String text) {
          if (isEmpty(text)) {
              return text;
          }
          String textTrimed = trimWhitespace(text);
          return textTrimed.replaceAll("(\\r\\n|\\r|\\n)+", "\n");
      }