List<GitPushNativeResult> (@NotNull List<String> output) { List<GitPushNativeResult> results = new ArrayList<>(); for (String line : output) { Matcher matcher = PATTERN.matcher(line); if (matcher.matches()) { results.add(parseRefResult(matcher, line)); } } return results; }