PsiElementVisitor (@NotNull ProblemsHolder holder, boolean isOnTheFly) { if (!PsiUtil.getLanguageLevel(holder.getFile()).isPreview()) { return PsiElementVisitor.EMPTY_VISITOR; } return new PreviewFeatureInspectionVisitor(holder); }