boolean (final NavigationItem item) { T filterValue = filterValueFor(item); if (filterValue != null) { final Collection<T> types = getFilterItems(); return types == null || types.contains(filterValue); } return true; }