void (@NotNull ActionContext context, @NotNull PsiParameterListOwner element, @NotNull ModPsiUpdater updater) { if (!(element.getBody() instanceof PsiCodeBlock block)) return; Project project = context.project(); generateBody(project, block, new EmptyProgressIndicator()); }