void (final OperatingSystem os) { info.add(String.valueOf(os)); info.add("Booted: " + Instant.ofEpochSecond(os.getSystemBootTime())); info.add("Uptime: " + FormatUtil.formatElapsedSecs(os.getSystemUptime())); info.add("Running with" + (os.isElevated() ? "" : "out") + " elevated permissions."); }