void (@NotNull ProcessEvent event, @NotNull Key outputType) { if (ProcessOutputTypes.STDERR.equals(outputType)) { errMessage.append(event.getText()); } else if (ProcessOutputTypes.STDOUT.equals(outputType)) { String text = event.getText(); if (text.contains(CONTENT_TYPE_ATTR)) { contentTypeValue.set(extractContentTypeValue(text)); } } }