Tokenizer (PsiElement element) { if (element instanceof PsiMethod) { return myMethodNameTokenizer; } if (element instanceof PsiDocComment) { return myDocCommentTokenizer; } if (element instanceof PsiLiteralExpression literalExpression) { if (SuppressManager.isSuppressedInspectionName(literalExpression) || ChronoUtil.isPatternForDateFormat(literalExpression)) { return EMPTY_TOKENIZER; } return myLiteralExpressionTokenizer; } if (element instanceof PsiNamedElement) { return myNamedElementTokenizer; } return super.getTokenizer(element); }