public void sendText(String line) {
    final Charset charset = myProcessHandler instanceof BaseOSProcessHandler ?
                            ((BaseOSProcessHandler)myProcessHandler).getCharset() : null;
    final OutputStream outputStream = myProcessHandler.getProcessInput();
    assert outputStream != null : "output stream is null";
    try {
      byte[] bytes = charset != null ? line.getBytes(charset) : line.getBytes(StandardCharsets.UTF_8);
      outputStream.write(bytes);
      outputStream.flush();
    }
    catch (IOException ignored) {
    }
  }
public void sendText(String line)