List<TextRange> (ASTNode rootNode, TextRange initialRange) { if (!mySettings.FORMATTER_TAGS_ENABLED) { return Collections.singletonList(initialRange); } EnabledRangesCollector collector = new EnabledRangesCollector(initialRange); collector.processText(rootNode.getChars()); return collector.getRanges(); }