Collection<String> () { List<String> result = new ArrayList<>(); result.addAll(myBranches); result.addAll(ContainerUtil.map(myPatterns, pattern -> pattern.pattern())); result.addAll(ContainerUtil.map(myExcludedBranches, branchName -> "-" + branchName)); result.addAll(ContainerUtil.map(myExcludedPatterns, pattern -> "-" + pattern.pattern())); return result; }