docs: public static String getTrimmedStackTrace(Throwable exception) {
          List<String> trimmedStackTraceLines = getTrimmedStackTraceLines(exception);
          if (trimmedStackTraceLines.isEmpty()) {
              return getFullStackTrace(exception);
          }
  
          StringBuilder result = new StringBuilder(exception.toString());
          appendStackTraceLines(trimmedStackTraceLines, result);
          appendStackTraceLines(getCauseStackTraceLines(exception), result);
          return result.toString();
      }