PsiElementVisitor (final @NotNull ProblemsHolder holder, boolean isOnTheFly) { if (!(JsonDialectUtil.getLanguageOrDefaultJson(holder.getFile()) instanceof Json5Language)) return PsiElementVisitor.EMPTY_VISITOR; return new StandardJson5ValidatingElementVisitor(holder); }