void (List<? extends InferenceVariable> variables) { for (InferenceVariable variable : variables) { for (Iterator<Pair<InferenceVariable[], PsiClassType>> iterator = myCaptures.iterator(); iterator.hasNext(); ) { Pair<InferenceVariable[], PsiClassType> capture = iterator.next(); if (isCapturedVariable(variable, capture)) { iterator.remove(); } } } }