docs: protected ConsoleReader createConsoleReader(InputStream systemIn) throws IOException {
          // need to swap out the output to avoid logging during init
          final PrintStream nullOutput = new PrintStream(new ByteArrayOutputStream());
          final PrintStream originalOut = Log.getOutput();
          try {
              Log.setOutput(nullOutput);
              ConsoleReader consoleReader = new ConsoleReader(systemIn, out);
              consoleReader.setExpandEvents(false);
              return consoleReader;
          } finally {
              Log.setOutput(originalOut);
          }
      }