docs: public static String threadDump()
      {
          final StringBuilder sb = new StringBuilder();
          final ThreadMXBean threadMXBean = ManagementFactory.getThreadMXBean();
  
          for (final ThreadInfo info : threadMXBean.getThreadInfo(threadMXBean.getAllThreadIds(), Integer.MAX_VALUE))
          {
              sb.append('"').append(info.getThreadName()).append("\": ").append(info.getThreadState());
  
              for (final StackTraceElement stackTraceElement : info.getStackTrace())
              {
                  sb.append("\n    at ").append(stackTraceElement.toString());
              }
  
              sb.append("\n\n");
          }
  
          return sb.toString();
      }