code: static ThreadStatus fillThreadInfoData(ThreadInfo thread, MXBeanThread.Builder<?> builder) {
          builder.setName(thread.getThreadName())
                  .setId(thread.getThreadId())
                  .setStacktrace(thread.getStackTrace())
                  .setAcquiredMonitors(getMonitors(thread))
                  .setAcquiredSynchronizers(getSynchronizers(thread))
          ;
  
          final ThreadStatus status = ThreadStatus.fromState(thread.getThreadState(), builder.getStacktrace().head());
          builder.setThreadStatus(status);
          return status;
      }
docs: /*package