public static List<PsiExpression> extractSideEffectExpressions(@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);
  }
public static List<PsiExpression> extractSideEffectExpressions(@NotNull PsiExpression element,
                                                                 @NotNull Predicate<? super PsiElement> ignoreElement)