private static Boolean isInferenceVariableOrFreshTypeParameter(InferenceVariable inferenceVariable,
                                                                 PsiType eqBound) {
    final PsiClass psiClass = PsiUtil.resolveClassInClassTypeOnly(eqBound);
    if (psiClass instanceof InferenceVariable ||
        psiClass instanceof PsiTypeParameter && TypeConversionUtil.isFreshVariable((PsiTypeParameter)psiClass) ||
        eqBound instanceof PsiCapturedWildcardType && eqBound.equals(inferenceVariable.getUserData(InferenceSession.ORIGINAL_CAPTURE))) return true;
    return false;
  }
private static Boolean isInferenceVariableOrFreshTypeParameter(InferenceVariable inferenceVariable,
                                                                 PsiType eqBound)