List<PsiExpression> (@NotNull PsiExpression element, @NotNull Predicate<? super PsiElement> ignoreElement) { List<PsiElement> list = new SmartList<>(); element.accept(new SideEffectsVisitor(list, element, ignoreElement)); return ContainerUtil.filterIsInstance(list, PsiExpression.class); }