Object (int row, int column) { TodoFilter filter = myFilters.get(row); return switch (column) { case 0 -> filter.getName(); // "Name" column case 1 -> StreamEx.of(filter.iterator()).map(TodoPattern::getPatternString).joining(" | "); default -> throw new IllegalArgumentException(); }; }