void (@NotNull PsiElementVisitor visitor) { PsiElement child = getFirstChild(); while (child != null) { final PsiElement nextSibling = child.getNextSibling(); child.accept(visitor); child = nextSibling; } }