void (List<? extends PsiType> upperBounds) { InferenceSession.findParameterizationOfTheSameGenericClass(upperBounds, pair -> { final PsiType sType = pair.first; final PsiType tType = pair.second; if (!(sType instanceof PsiWildcardType) && !(tType instanceof PsiWildcardType) && sType != null && tType != null) { addConstraint(new TypeEqualityConstraint(sType, tType)); } return false; }); }