void (@NotNull Document copiedFragment, int startOffset, int startLineNumber, @NotNull Consumer<? super AdditionalHighlight> consumer) { List<Filter> filters = myFilters; int count = filters.size(); //noinspection ForLoopReplaceableByForEach for (int i = 0; i < count; i++) { Filter filter = filters.get(i); if (filter instanceof FilterMixin && ((FilterMixin)filter).shouldRunHeavy()) { ((FilterMixin)filter).applyHeavyFilter(copiedFragment, startOffset, startLineNumber, consumer); } } }