void (PsiTypeElement typeElement) { if (typeElement == null) { return; } final PsiType type = typeElement.getType(); final PsiType componentType = type.getDeepComponentType(); final PsiClass aClass = PsiUtil.resolveClassInClassTypeOnly(componentType); if (aClass instanceof PsiTypeParameter) { return; } final PsiClass parentClass = ClassUtils.getContainingClass(typeElement); if (!isSubclass(aClass, parentClass)) { return; } registerError(typeElement, parentClass, Boolean.FALSE); }