boolean (Iterable<? extends InferenceVariable> variables) { for (InferenceVariable variable : variables) { for (Pair<InferenceVariable[], PsiClassType> capture : myCaptures) { if (isCapturedVariable(variable, capture)) { return true; } } } return false; }