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