void start() {
    TemplateBuilderImpl builder = new TemplateBuilderImpl(myPsiFile);
    for (TextRange occurrence : myOccurrenceRanges) {
      if (occurrence.equals(myOccurrenceRangeAtCaret)) {
        builder.replaceElement(myPsiFile, occurrence, PRIMARY_VARIABLE_NAME, new MyExpression(myOccurrenceText), true);
      }
      else {
        builder.replaceElement(myPsiFile, occurrence, OTHER_VARIABLE_NAME, PRIMARY_VARIABLE_NAME, false);
      }
    }
    createCaretRangeMarker();
    WriteCommandAction.writeCommandAction(myProject).withName(ShBundle.message("sh.rename.occurence", myOccurrenceText)).run(() -> startTemplate(builder));
  }
void start()