Collection<String> (@NotNull BranchType type) { ArrayList<String> branches = new ArrayList<>(); if (type == GitBranchType.LOCAL) { branches.add(MASTER); branches.add(MAIN); } if (type == GitBranchType.REMOTE) { branches.add(ORIGIN_MASTER); branches.add(ORIGIN_MAIN); } return branches; }