void (@NotNull PsiLiteralExpression expression) { super.visitLiteralExpression(expression); if (!hasErrorResults() && expression.getParent() instanceof PsiCaseLabelElementList && expression.textMatches(PsiKeyword.NULL)) { add(checkFeature(expression, HighlightingFeature.PATTERNS_IN_SWITCH)); } if (!hasErrorResults()) HighlightUtil.checkIllegalUnicodeEscapes(expression, myErrorSink); if (!hasErrorResults()) { add(HighlightUtil.checkLiteralExpressionParsingError(expression, myLanguageLevel, myFile, null)); } if (myRefCountHolder != null && !hasErrorResults()) { registerReferencesFromInjectedFragments(expression); } if (myRefCountHolder != null && !hasErrorResults()) { for (PsiReference reference : expression.getReferences()) { if (reference instanceof PsiMemberReference) { PsiElement resolve = reference.resolve(); if (resolve instanceof PsiMember) { myRefCountHolder.registerReference(reference, new CandidateInfo(resolve, PsiSubstitutor.EMPTY)); } } } } }