void (String line, Key outputType) { if (outputType == ProcessOutputTypes.STDOUT) { myOutputCollector.outputLineReceived(line); } else if (outputType == ProcessOutputTypes.STDERR && !looksLikeProgress(line)) { myOutputCollector.errorLineReceived(line); } }