docs: public static String ellipsize(String text, int maxLength, String end) {
          if (text != null && text.length() > maxLength) {
              return text.substring(0, maxLength - end.length()) + end;
          }
          return text;
      }