void (@NotNull PsiReferenceParameterList list) { if (list.getTextLength() == 0) return; add(checkFeature(list, HighlightingFeature.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, HighlightingFeature.DIAMOND_TYPES)); } } } }