void (@NotNull Process process, @NotNull String content, @NotNull Charset charset) { try (OutputStream stdin = Objects.requireNonNull(process.getOutputStream())) { stdin.write(content.getBytes(charset)); stdin.flush(); } catch (IOException e) { LOG.debug("Failed to write file content to stdin\n\n" + content, e); } }