protected List<Branch> parseRefList(List<Ref> refList) { List<Branch> result = new ArrayList<Branch>(); if (CollectionUtils.isNotEmpty(refList)) { for (Ref ref : refList) { Branch buildBranch = new Branch(ref); result.add(buildBranch); listener.getLogger().println(Messages.GitAPI_Branch_BranchInRepoMsg(buildBranch.getName())); } } return result; }