void (InferenceVariable variable, Set<? super InferenceVariable> dependencies) { for (Pair<InferenceVariable[], PsiClassType> capture : myCaptures) { if (isCapturedVariable(variable, capture)) { mySession.collectDependencies(capture.second, dependencies); ContainerUtil.addAll(dependencies, capture.first); } } }