docs: protected void redirectSystemOutAndErr(boolean force) {
          if (force || !(System.out instanceof ConsolePrintStream)) {
              System.setOut(new ConsolePrintStream(out));
          }
          if (force || !(System.err instanceof ConsoleErrorPrintStream)) {
              System.setErr(new ConsoleErrorPrintStream(err));
          }
      }