void (@NotNull ProcessEvent event) { OutputStream input = event.getProcessHandler().getProcessInput(); if (input == null) { return; } String password = CredentialPromptDialog.askPassword( project, IdeBundle.message("wsl.enter.root.password.dialog.title"), IdeBundle.message("wsl.sudo.password.for.root.label", getPresentableName()), new CredentialAttributes("WSL", "root", WSLDistribution.class), true ); if (password != null) { try (PrintWriter pw = new PrintWriter(input, false, commandLine.getCharset())) { pw.println(password); } } else { // fixme notify user? } super.startNotified(event); }