String (int status) { return switch (status) { case ThreadReference.THREAD_STATUS_MONITOR -> Thread.State.BLOCKED.name(); case ThreadReference.THREAD_STATUS_NOT_STARTED -> Thread.State.NEW.name(); case ThreadReference.THREAD_STATUS_RUNNING -> Thread.State.RUNNABLE.name(); case ThreadReference.THREAD_STATUS_SLEEPING -> Thread.State.TIMED_WAITING.name(); case ThreadReference.THREAD_STATUS_WAIT -> Thread.State.WAITING.name(); case ThreadReference.THREAD_STATUS_ZOMBIE -> Thread.State.TERMINATED.name(); case ThreadReference.THREAD_STATUS_UNKNOWN -> "unknown"; default -> "undefined"; }; }