@Override
  public void accept(@NotNull PsiElementVisitor visitor) {
    if (isAcceptedFor(visitor.getClass())) {
      if (visitor instanceof PyElementVisitor pyVisitor) {
        pyVisitor.visitPyFile(this);
      }
      else if (visitor instanceof PyAstElementVisitor pyVisitor) {
        pyVisitor.visitPyFile(this);
      }
      else {
        super.accept(visitor);
      }
    }
  }
@Override
  public void accept(@NotNull PsiElementVisitor visitor)