code: private ConsoleEditor instantiate(Class<? extends ConsoleEditor> editorClass, Terminal terminal, InputStream in , PrintStream out) throws IllegalAccessException, InvocationTargetException, InstantiationException, NoSuchMethodException {
          Constructor constructor = editorClass.getConstructor(Terminal.class, InputStream.class, PrintStream.class);
          return (ConsoleEditor) constructor.newInstance(terminal, in , out);
      }
docs: Instantiates the {@link ConsoleEditor}.
  @param editorClass
  @param terminal
  @return
  @throws IllegalAccessException
  @throws InvocationTargetException
  @throws InstantiationException
  @throws NoSuchMethodException