void (@NotNull ProcessEvent event, @NotNull Key outputType) { if (outputType == ProcessOutputTypes.STDOUT) { stdOutParser.append(event.getText()); } else if (outputType == ProcessOutputTypes.STDERR) { stdErrParser.append(event.getText()); } }