ModCommand (@NotNull ActionContext context) { return ModCommand.psiUpdate(context.file(), f -> { LoopModel model = LoopModel.from(context.withFile(f)); if (model == null) return; model.generate(); }); }