public ConsoleEvaluationHandler(PrintStream output, Reader console) {
        if (output == null) {
            throw new IllegalArgumentException("The given output stream must not be null.");
        }
        if (console == null) {
            throw new IllegalArgumentException("The given console must not be null.");
        }

        this.output = output;
        this.console = console;
    }