TemplateDataModifications (int startOffset, @NotNull CharSequence textToInsert) { TemplateDataModifications modifications = new TemplateDataModifications(); modifications.addRangeToRemove(startOffset, textToInsert); return modifications; }