@Override
  public void visitReferenceParameterList(@NotNull PsiReferenceParameterList list) {
    if (list.getTextLength() == 0) return;

    add(checkFeature(list, JavaFeature.GENERICS));
    if (!hasErrorResults()) add(GenericsHighlightUtil.checkParametersAllowed(list));
    if (!hasErrorResults()) add(GenericsHighlightUtil.checkParametersOnRaw(list, myLanguageLevel));
    if (!hasErrorResults()) {
      for (PsiTypeElement typeElement : list.getTypeParameterElements()) {
        if (typeElement.getType() instanceof PsiDiamondType) {
          add(checkFeature(list, JavaFeature.DIAMOND_TYPES));
        }
      }
    }
  }
@Override
  public void visitReferenceParameterList(@NotNull PsiReferenceParameterList list)