void (@NotNull PsiMethodCallExpression call) { PsiReferenceExpression methodExpr = call.getMethodExpression(); PsiExpression list = PsiUtil.skipParenthesizedExprDown(methodExpr.getQualifierExpression()); if (list == null || list instanceof PsiThisExpression) return; PsiExpression arg = PsiUtil.skipParenthesizedExprDown(call.getArgumentList().getExpressions()[0]); if (ExpressionUtils.isZero(arg) && !hasDifferentIndexNearby(call)) { report(call, "addFirst"); } }