void (List<? extends PsiType> eqBounds, Collection<? extends PsiType> changedEqBounds) { for (int i = 0; i < eqBounds.size(); i++) { PsiType sBound = eqBounds.get(i); boolean changed = changedEqBounds.contains(sBound); for (int j = i + 1; j < eqBounds.size(); j++) { final PsiType tBound = eqBounds.get(j); if (changed || changedEqBounds.contains(tBound)) { addConstraint(new TypeEqualityConstraint(tBound, sBound)); } } } }