ModCommand (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { return ModCommand.updateOption(descriptor.getStartElement(), myInspection, inspection -> { List<String> list = myExtractor.apply(inspection); list.add(myItemToAdd); list.sort(null); }); }