List<RangeFormatInfo> (@NotNull PsiFile file, @NotNull FormattingRangesInfo ranges) { List<RangeFormatInfo> infos = new ArrayList<>(); for (TextRange range : ranges.getTextRanges()) { infos.add(new RangeFormatInfo(file, range)); } return infos; }