code: @Deprecated
      public static String getFilteredStackTrace(Throwable t, boolean shouldFilter) {
  
          if (shouldFilter) {
              return getFilteredStackTrace(t, 0);
          }
  
          StringWriter sw = new StringWriter();
          PrintWriter pw = new PrintWriter(sw);
          t.printStackTrace(pw);
          pw.close();
  
          return sw.getBuffer().toString();
      }
docs: Get a filterered stack trace.
  
  @param t the throwable
  @param shouldFilter true in case filtering should be performed. Else stack trace as string will be returned.
  @return String containing the stack trace.
  @deprecated since 1.11.1. Use {@link #getStackTrace(Throwable, int)} to get the stack trace without filtering or
  {@link #getFilteredStackTrace(Throwable)} to get the filtered the stack trace.