private void checkTypeElement(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 =
        PsiUtil.getContainingClass(typeElement);
      if (!isSubclass(aClass, parentClass)) {
        return;
      }
      registerError(typeElement, parentClass, Boolean.FALSE);
    }
private void checkTypeElement(PsiTypeElement typeElement)