String (@NotNull Thread.State state) { switch (state) { case BLOCKED: return "blocked"; case TIMED_WAITING: case WAITING: return "waiting on condition"; case RUNNABLE: return "runnable"; case NEW: return "new"; case TERMINATED: return "terminated"; } return null; }