void (List<PsiExpression> conditions) { final BitSet matched = new BitSet(); for (int i = 0; i < conditions.size(); i++) { if (matched.get(i)) continue; final PsiExpression condition = conditions.get(i); for (int j = i + 1; j < conditions.size(); j++) { if (matched.get(j)) continue; final PsiExpression testCondition = conditions.get(j); final boolean areEquivalent = EquivalenceChecker.getCanonicalPsiEquivalence().expressionsAreEquivalent(condition, testCondition); if (areEquivalent) { registerError(testCondition); if (!matched.get(i)) { registerError(condition); } matched.set(i); matched.set(j); } } } }