ModCommand (@NotNull ActionContext actionContext, @NotNull PsiJavaCodeReferenceElement element) { Context context = Context.from(element, false); if (context == null) return ModCommand.nop(); List<PsiNameIdentifierOwner> placesToAdd = context.placesToAdd; return new ModChooseAction(QuickFixBundle.message("create.type.parameter.from.usage.chooser.title"), ContainerUtil.map(placesToAdd, place -> ModCommand.psiUpdateStep(place, Objects.requireNonNull(place.getName()), (owner, updater) -> createTypeParameter(owner, context.typeName)))); }