@Override
  public void visitImportStaticStatement(@NotNull PsiImportStaticStatement statement) {
    add(checkFeature(statement, JavaFeature.STATIC_IMPORTS));
    if (!hasErrorResults()) add(ImportsHighlightUtil.checkStaticOnDemandImportResolvesToClass(statement));
    if (!hasErrorResults()) {
      PsiJavaCodeReferenceElement importReference = statement.getImportReference();
      PsiClass targetClass = statement.resolveTargetClass();
      if (importReference != null) {
        PsiElement referenceNameElement = importReference.getReferenceNameElement();
        if (referenceNameElement != null && targetClass != null) {
          add(GenericsHighlightUtil.checkClassSupersAccessibility(targetClass, referenceNameElement, myFile.getResolveScope()));
        }
      }
      if (!hasErrorResults()) {
        PreviewFeatureUtil.checkPreviewFeature(statement, myPreviewFeatureVisitor);
      }
    }
  }
@Override
  public void visitImportStaticStatement(@NotNull PsiImportStaticStatement statement)