@Nullable
  public static PsiElement getLocalInsertPosition(@NotNull PsiElement anchor) {
    return PsiTreeUtil.getParentOfType(anchor, PyStatement.class, false);
  }
@Nullable
  public static PsiElement getLocalInsertPosition(@NotNull PsiElement anchor)