docs: public static String getFilteredStackTrace(Throwable t, int ref) {
  
          StringWriter sw = new StringWriter();
          FilterWriter filterWriter = new StackTraceFilterWriter(sw);
  
          printStackTrace(t, filterWriter, ref);
  
          return sw.getBuffer().toString();
      }