void (@NotNull PsiComment comment) { if (!allowComments() && myWarnAboutComments) { if (JsonStandardComplianceProvider.shouldWarnAboutComment(comment) && comment.getContainingFile().getLanguage() instanceof JsonLanguage) { myHolder.registerProblem(comment, JsonBundle.message("inspection.compliance.msg.comments")); } } }