boolean (@Nullable PsiType classType) { classType = LambdaUtil.normalizeFunctionalType(classType); if (classType == null) return false; if (classType instanceof PsiClassType) { final PsiClassType.ClassResolveResult result = ((PsiClassType)classType).resolveGenerics(); final PsiClass aClass = result.getElement(); if (aClass != null) { final PsiSubstitutor substitutor = result.getSubstitutor(); for (PsiTypeParameter parameter : aClass.getTypeParameters()) { if (substitutor.substitute(parameter) instanceof PsiWildcardType) { return true; } } } return false; } return false; }