boolean () { final ClassResolveResult resolveResult = resolveGenerics(); PsiClass aClass = resolveResult.getElement(); if (aClass == null) return false; boolean hasParams = false; for (PsiTypeParameter parameter : PsiUtil.typeParametersIterable(aClass)) { if (resolveResult.getSubstitutor().substitute(parameter) == null) return false; hasParams = true; } return hasParams; }