@Override public boolean accept(CourseRec rec) { if (!this.active || rec.getCategories().isEmpty()) return true; for (DescRec r : rec.getCategories()) if (selected.contains(r)) return true; return false; }