private static void addExpressionOccurrences(PsiExpression expr, List<? super PsiExpression> array, PsiElement scope, EquivalenceChecker equivalenceChecker) {
    PsiElement[] children = scope.getChildren();
    for (PsiElement child : children) {
      if (child instanceof PsiExpression) {
        PsiExpression unparenthesized = CommonJavaRefactoringUtil.unparenthesizeExpression((PsiExpression)child);
        if (equivalenceChecker.expressionsAreEquivalent(unparenthesized, expr)) {
          array.add((PsiExpression)child);
          continue;
        }
      }
      addExpressionOccurrences(expr, array, child, equivalenceChecker);
    }
  }
private static void addExpressionOccurrences(PsiExpression expr, List<? super PsiExpression> array, PsiElement scope, EquivalenceChecker equivalenceChecker)