void (@NotNull PsiElement element) { ProgressManager.checkCanceled(); PsiElement child = element.getFirstChild(); while (child != null) { outElements.add(child); child.accept(this); appendDialects(child, processedLanguages, outDialects); child = child.getNextSibling(); } }