CharSequence (@NotNull CharSequence sourceCode, @NotNull Lexer baseLexer, @NotNull TemplateDataElementType.RangeCollector rangeCollector) { if (REQUIRES_OLD_CREATE_TEMPLATE_TEXT.getValue()) { return oldCreateTemplateText(sourceCode, baseLexer, rangeCollector); } TemplateDataModifications modifications = collectTemplateModifications(sourceCode, baseLexer); return ((RangeCollectorImpl)rangeCollector).applyTemplateDataModifications(sourceCode, modifications); }