@NotNull
  private static ModCommand createChooser(@NotNull PsiVariable variable,
                                               @Nullable PsiReferenceExpression refExpr,
                                               @NotNull List<? extends PsiElement> allRefs) {
    return ModCommand.chooseAction(getRefactoringName(variable),
                                   new InlineLocalStep(variable, refExpr, InlineMode.INLINE_ONE, allRefs),
                                   new InlineLocalStep(variable, refExpr, InlineMode.INLINE_ALL_AND_DELETE, allRefs));
  }
@NotNull
  private static ModCommand createChooser(@NotNull PsiVariable variable,
                                               @Nullable PsiReferenceExpression refExpr,
                                               @NotNull List<? extends PsiElement> allRefs)