void (@NotNull PsiReferenceExpression ref) { PsiVariable variable = tryCast(ref.resolve(), PsiVariable.class); if (variable == null || !variable.hasModifierProperty(PsiModifier.FINAL)) return; PsiLiteralExpression initializer = tryCast(PsiUtil.skipParenthesizedExprDown(PsiFieldImpl.getDetachedInitializer(variable)), PsiLiteralExpression.class); if (initializer == null || !isNegativeHexLiteral(initializer)) return; checkLongContext(ref); }