void (String fmt, Object... args) { String msg = GlobalState.class.getName() + ": " + String.format(Locale.ROOT, fmt, args); // Warn on all available output channels, hoping that one of them still works. originalSystemOut.println(msg); originalSystemErr.println(msg); throw new IllegalStateException(msg); }