@Override
  public void accept(@NotNull PsiElementVisitor visitor) {
    PyUtil.verboseOnly(() -> PyPsiUtils.assertValid(this));
    if (visitor instanceof PyElementVisitor pyVisitor) {
      acceptPyVisitor(pyVisitor);
    }
    else if (visitor instanceof PyAstElementVisitor pyVisitor) {
      acceptPyVisitor(pyVisitor);
    }
    else {
      super.accept(visitor);
    }
  }
@Override
  public void accept(@NotNull PsiElementVisitor visitor)