for (int i = 0; i < cols; i++) {
ColumnConfig<M, ?> config = grid.getColumnModel().getColumn(i);
if (!config.isHidden()) {
ColumnHeader<M> header = grid.getView().getHeader();
if (header != null) {
Head h = header.getHead(i);
if (h != null && h.isRendered()) {
Filter<M, ?> f = getFilter(config.getValueProvider().getPath());
if (f != null) {
h.getElement().setClassName(appearance.filteredStyle(), f.isActive());
}
}
}
}
}