public boolean hasInstantiation(InferenceSession session) { List<PsiType> bounds = getBounds(InferenceBound.EQ); if (bounds != null) { for (PsiType bound : bounds) { if (session.isProperType(bound)) return true; } } return false; }