@Override
  public void visitTypeElement(@NotNull PsiTypeElement type) {
    if (!hasErrorResults()) add(HighlightUtil.checkIllegalType(type, myFile));
    if (!hasErrorResults()) add(HighlightUtil.checkVarTypeApplicability(type));
    if (!hasErrorResults()) add(GenericsHighlightUtil.checkReferenceTypeUsedAsTypeArgument(type));
    if (!hasErrorResults()) add(GenericsHighlightUtil.checkWildcardUsage(type));
    if (!hasErrorResults()) add(HighlightUtil.checkArrayType(type));
    if (!hasErrorResults()) {
      PreviewFeatureUtil.checkPreviewFeature(type, myPreviewFeatureVisitor);
    }
  }
@Override
  public void visitTypeElement(@NotNull PsiTypeElement type)