void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { final PsiMethodCallExpression call = ObjectUtils.tryCast(element, PsiMethodCallExpression.class); if (call == null) return; final PsiExpression[] args = call.getArgumentList().getExpressions(); if (args.length != 1) return; final PsiExpression arg = args[0]; final PsiExpression qualifier = call.getMethodExpression().getQualifierExpression(); if (qualifier == null) return; ExpressionUtils.bindCallTo(call, FOR_EACH_METHOD); final CommentTracker ct = new CommentTracker(); final String setRemove = qualifier.getText() + "::remove"; ct.replace(qualifier, arg); ct.replace(arg, setRemove); }