void (@NotNull PsiMethodCallExpression call) { if (!COMPARE_METHOD.test(call)) return; checkComparison(call); PsiElement parent = PsiUtil.skipParenthesizedExprUp(call.getParent()); if (parent instanceof PsiLocalVariable var) { PsiCodeBlock block = PsiTreeUtil.getParentOfType(var, PsiCodeBlock.class); PsiExpression initializer = var.getInitializer(); if (block != null && initializer != null) { for (PsiElement element : DefUseUtil.getRefs(block, var, initializer)) { checkComparison(element); } } } }