private void collectBoundDependencies(InferenceSession session, Set<? super InferenceVariable> dependencies) {
    for (Collection<PsiType> boundTypes : myBounds.values()) {
      if (boundTypes != null) {
        for (PsiType bound : boundTypes) {
          session.collectDependencies(bound, dependencies);
        }
      }
    }
  }
private void collectBoundDependencies(InferenceSession session, Set<? super InferenceVariable> dependencies)