code: public static StackTraceElement[] getCroppedRealStackTrack(StackTraceElement[] stackTrace,
                                                               String stackTraceOrigin,
                                                               int maxDepth) {
      return cropStackTrace(getRealStackTrack(stackTrace, stackTraceOrigin), maxDepth);
    }
docs: Get the real stack trace and then crop it with a max depth.
  
  @param stackTrace the full stack trace
  @param maxDepth   the max depth of real stack trace that will be cropped, 0 means no limitation
  @return the cropped real stack trace