@NotNull
  private Map<OccurrencesChooser.ReplaceChoice, List<Object>> getOccurrenceOptions(@NotNull Target target,
                                                                                   @NotNull List<UsageInfo> usages) {
    HashMap<OccurrencesChooser.ReplaceChoice, List<Object>> map = new LinkedHashMap<>();

    map.put(OccurrencesChooser.ReplaceChoice.NO, Collections.singletonList(target));
    if (usages.size() > 1) {
      map.put(OccurrencesChooser.ReplaceChoice.ALL, new ArrayList<>(usages));
    }
    return map;
  }
@NotNull
  private Map<OccurrencesChooser.ReplaceChoice, List<Object>> getOccurrenceOptions(@NotNull Target target,
                                                                                   @NotNull List<UsageInfo> usages)