void (@NotNull PsiFile file, FormatTextRanges ranges) { final Iterable<TextRange> excludedRangesIterable = TextRangeUtil.excludeRanges( file.getTextRange(), myTagHandler.getEnabledRanges(file.getNode(), file.getTextRange())); ranges.setDisabledRanges((Collection<TextRange>)excludedRangesIterable); }