List<List<String>> (@NotNull Set<String> availableBranches, @NotNull List<List<String>> recentBranchFilters) { if (availableBranches.isEmpty()) { return recentBranchFilters; } return ContainerUtil.filter(recentBranchFilters, recentFilter -> !fromBranchPatterns(recentFilter, availableBranches, true).isEmpty()); }