public SearchFilterVisibilityCheckStatus checkSearchFilterVisibility(final Predicate<String> readPermissionPredicate,
                                                                         final Collection<String> referencedSearchFiltersIds) {
        final List<String> hiddenSearchFiltersIDs = referencedSearchFiltersIds
                .stream()
                .filter(id -> !readPermissionPredicate.test(id))
                .collect(Collectors.toList());

        return new SearchFilterVisibilityCheckStatus(hiddenSearchFiltersIDs);
    }
@Test
    void testSuccessfulCheckOnEmptyReferencedFilters() {
        final Predicate<String> alwaysTruePredicate = filterId -> true;
        final SearchFilterVisibilityCheckStatus result = toTest.checkSearchFilterVisibility(alwaysTruePredicate, ImmutableSet.of());
        assertTrue(result.allSearchFiltersVisible());
    }