@Override
  protected @NotNull ModCommand perform(@NotNull ActionContext context, @NotNull PyReferenceExpression element) {
    return switch (myUnqualifyAll) {
      case YES -> invoke(element, true);
      case NO -> invoke(element, false);
      case UNSURE -> {
        IntentionState state = createAndCheckState(element);
        if (state.allReferencesHaveSameName()) {
          yield invoke(element, true);
        }
        else {
          yield new ModChooseAction(PyPsiBundle.message("INTN.multiple.usages.of.import.found"),
                                    List.of(new ImportToImportFromIntention(ThreeState.YES),
                                            new ImportToImportFromIntention(ThreeState.NO)));
        }
      }
    };
  }
@Override
  protected @NotNull ModCommand perform(@NotNull ActionContext context, @NotNull PyReferenceExpression element)