ModCommand (@NotNull ActionContext context, @NotNull PsiField field) { PsiClass psiClass = Objects.requireNonNull(field.getContainingClass()); PsiMethod[] constructors = getNonSyntheticConstructors(psiClass); final List<PsiMethod> filtered = getFilteredConstructors(constructors, field); if (filtered.size() <= 1) { return performForConstructors(context, field, filtered); } List<PsiMethodMember> members = ContainerUtil.map(filtered, PsiMethodMember::new); return new ModChooseMember(QuickFixBundle.message("choose.constructors.to.add.parameter.to"), members, members, ModChooseMember.SelectionMode.MULTIPLE, selected -> performForConstructors( context, field, ContainerUtil.map(selected, member -> ((PsiMethodMember)member).getElement()))); }