void (@NotNull PsiImportStaticStatement statement) { add(checkFeature(statement, HighlightingFeature.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()) { HighlightingFeature.checkPreviewFeature(statement, myPreviewFeatureVisitor); } } }