private void invokeDialogStep(@NotNull Target target,
                                @NotNull Scope scope,
                                @NotNull List<UsageInfo> usages,
                                @NotNull PsiFile file,
                                @NotNull Editor editor,
                                @NotNull Project project) {
    Map<OccurrencesChooser.ReplaceChoice, List<Object>> occurrencesMap = getOccurrenceOptions(target, usages);
    OccurrencesChooser<Object> chooser = new OccurrencesChooser<>(editor) {
      @Override
      protected TextRange getOccurrenceRange(Object occurrence) {
        return IntroduceHandler.this.getOccurrenceRange(occurrence);
      }
    };
    chooser.showChooser(occurrencesMap, choice -> {
      startInplaceIntroduce(target, scope, usages, file, editor, project, choice);
    });
  }
private void invokeDialogStep(@NotNull Target target,
                                @NotNull Scope scope,
                                @NotNull List<UsageInfo> usages,
                                @NotNull PsiFile file,
                                @NotNull Editor editor,
                                @NotNull Project project)