Key (@NotNull String line, @NotNull Key outputType) { Key result = outputType; if (!ProcessOutputTypes.SYSTEM.equals(outputType)) { Matcher errorMatcher = SvnUtil.ERROR_PATTERN.matcher(line); Matcher warningMatcher = SvnUtil.WARNING_PATTERN.matcher(line); result = errorMatcher.find() || warningMatcher.find() ? ProcessOutputTypes.STDERR : ProcessOutputTypes.STDOUT; } return result; }