@Deprecated
  public boolean isInContext(@NotNull PsiFile file, int offset) {
    throw new RuntimeException("Please, implement isInContext(TemplateActionContext) method and don't invoke this method directly");
  }
@Deprecated
  public boolean isInContext(@NotNull PsiFile file, int offset)