void (@NotNull List<? extends RangeFormatInfo> rangeFormatInfoList, @NotNull Consumer<? super TextRange> postProcessFormatter) { for (RangeFormatInfo info : rangeFormatInfoList) { int startOffset = info.getStartOffset(); int endOffset = info.getEndOffset(); if (startOffset >= 0 && endOffset >= 0 && endOffset > startOffset) { postProcessFormatter.accept(new TextRange(startOffset, endOffset)); } info.disposePointers(); } }