ModCommand (@NotNull Project project, @NotNull List<ProblemDescriptor> descriptors) { return ModCommand.psiUpdate(ActionContext.from(descriptors.get(0)), updater -> { List<FixData> elements = ContainerUtil.map(descriptors, descriptor -> prepareDataForFix(updater, descriptor.getPsiElement())); elements.forEach(FixData::apply); }); }