boolean (final PsiType type) { final PsiClassType.ClassResolveResult resolveResult = PsiUtil.resolveGenericsClassInType(type); final PsiClass clazz = resolveResult.getElement(); if (clazz != null) { for (PsiTypeParameter typeParameter : PsiUtil.typeParametersIterable(clazz)) { final PsiType t = resolveResult.getSubstitutor().substitute(typeParameter); if (t == Bottom.BOTTOM) return true; } } return false; }