private static void collectPsiStatements(PsiElement root, Set<? super PsiStatement> collected) {
    SyntaxTraverser.psiTraverser(root).filter(PsiStatement.class).addAllTo(collected);
  }
private static void collectPsiStatements(PsiElement root, Set<? super PsiStatement> collected)