public @NotNull TemplateActionContext withFile(@NotNull PsiFile file) {
    return new TemplateActionContext(file, myEditor, myStartOffset, myEndOffset, myIsSurrounding);
  }
public @NotNull TemplateActionContext withFile(@NotNull PsiFile file)