void (final @NotNull PsiFile file, @NotNull TextRange range, CodeStyleSettings settings, boolean isWhitespaceOnly) { List<TextRange> enabledRanges = new FormatterTagHandler(getSettings(file)).getEnabledRanges(file.getNode(), range); int delta = 0; for (TextRange enabledRange : enabledRanges) { enabledRange = enabledRange.shiftRight(delta); TextRange processedRange = postProcessRange(file, enabledRange, settings, isWhitespaceOnly); delta += processedRange.getLength() - enabledRange.getLength(); } }