ModCommand (@NotNull ActionContext context, @NotNull PsiMethodCallExpression element) { List<PsiVariable> candidates = findCandidates(element, IntentionPreviewUtils.isIntentionPreviewActive() ? SearchMode.MAX_2_CANDIDATES : SearchMode.FULL_SEARCH); SmartPsiElementPointer<PsiMethodCallExpression> pointer = SmartPointerManager.createPointer(element); List<ModCommandAction> qualifyActions = ContainerUtil.map(candidates, candidate -> createAction(candidate, pointer)); return new ModChooseAction(QuickFixBundle.message("add.qualifier"), qualifyActions); }