void (@NotNull ProcessEvent event, @NotNull Key outputType) { if (ProcessOutputTypes.STDOUT.equals(outputType)) { output.append(event.getText()); } if (ProcessOutputTypes.STDERR.equals(outputType)) { errorMessage.append(event.getText()); } }