ModChooseAction (@NotNull PsiVariable variable, @Nullable PsiReferenceExpression refExpr, @NotNull List<? extends PsiElement> allRefs) { List<ModCommandAction> actions = List.of( new InlineLocalStep(variable, refExpr, InlineMode.INLINE_ONE, allRefs), new InlineLocalStep(variable, refExpr, InlineMode.INLINE_ALL_AND_DELETE, allRefs)); return new ModChooseAction(getRefactoringName(variable), actions); }