TextContent (Set<Character> indentChars) { LinkedHashSet<IntRange> ranges = StrategyUtils.INSTANCE.indentIndexes(this, indentChars); List<Exclusion> exclusions = StreamEx.of(ranges) .sorted(Comparator.comparingInt(IntRange::getFirst)) .map(range -> { int end = range.getEndInclusive() + 1; return new Exclusion(range.getStart(), end, hasUnknownFragmentsIn(new TextRange(range.getStart(), end))); }) .toList(); return excludeRanges(exclusions); }