@Override
  public void visitReferenceList(@NotNull PsiReferenceList list) {
    if (list.getFirstChild() == null) return;
    PsiElement parent = list.getParent();
    if (!(parent instanceof PsiTypeParameter)) {
      add(AnnotationsHighlightUtil.checkAnnotationDeclaration(parent, list));
      if (!hasErrorResults()) add(HighlightClassUtil.checkExtendsAllowed(list));
      if (!hasErrorResults()) add(HighlightClassUtil.checkImplementsAllowed(list));
      if (!hasErrorResults()) add(HighlightClassUtil.checkClassExtendsOnlyOneClass(list));
      if (!hasErrorResults()) HighlightClassUtil.checkPermitsList(list, myErrorSink);
      if (!hasErrorResults()) add(GenericsHighlightUtil.checkGenericCannotExtendException(list));
    }
  }
@Override
  public void visitReferenceList(@NotNull PsiReferenceList list)