docs: public String getInput() {
          try {
              String ret = consoleReader.readLine();
              if (ret != null) {
                  ret = ret.trim();
              }
              if (ret != null && !ret.isEmpty() && consoleReader.isHistoryEnabled() && history != null) {
                  history.add(ret);
                  history.flush();
              }
              return ret;
          } catch (IOException e) {
              throw new IllegalStateException("Can't read from console", e);
          }
      }