String (ThreadInfo @NotNull [] threadInfos) { StringWriter writer = new StringWriter(); if (threadInfos.length > 0) { StackTraceElement[] trace = threadInfos[0].getStackTrace(); printStackTrace(writer, trace); } return writer.toString(); }