void (Block block) { if (block instanceof ExtraRangesProvider) { List<TextRange> newRanges = ((ExtraRangesProvider)block).getExtraRangesToFormat(myFormatRanges); if (newRanges != null) { totalNewRanges.addAll(newRanges); } } }