boolean (PsiExpression candidate) { candidate = PsiUtil.skipParenthesizedExprDown(candidate); if (!(candidate instanceof PsiMethodCallExpression call)) return false; if (!COLLECTION_REMOVE.test(call)) return false; PsiExpression qualifier = call.getMethodExpression().getQualifierExpression(); if (!EquivalenceChecker.getCanonicalPsiEquivalence().expressionsAreEquivalent(qualifier, myIterable)) return false; PsiExpression arg = call.getArgumentList().getExpressions()[0]; return ExpressionUtils.isReferenceTo(arg, myParameter); }