public static @NotNull TemplateActionContext expanding(@NotNull PsiFile psiFile, @NotNull Editor editor) {
    int editorOffset = editor.getCaretModel().getOffset();
    return create(psiFile, editor, editorOffset, editorOffset, false);
  }
public static @NotNull TemplateActionContext expanding(@NotNull PsiFile psiFile, @NotNull Editor editor)