private Usage @NotNull [] createUsages() {
    ArrayList<Usage> usages = new ArrayList<>(myElementConflictDescription.values().size());
    for (PsiElement element : myElementConflictDescription.keySet()) {
      assert element != null;
      for (@NlsContexts.Tooltip String conflictDescription : myElementConflictDescription.get(element)) {
        UsagePresentation usagePresentation = new ConflictPresentation(conflictDescription);
        UsageInfo usageInfo = new UsageInfo(element) {
          @Override @NlsSafe
          public String getTooltipText() {
            return myUpdatedDialog ? "<html><body style='width: 300px'>" + usagePresentation.getPlainText() + "</body></html>" : null;
          }
        };
        Usage usage = new UsageInfo2UsageAdapter(usageInfo) {
          @NotNull
          @Override
          public UsagePresentation getPresentation() {
            return usagePresentation;
          }
        };
        usages.add(usage);
      }
    }
    return usages.toArray(Usage.EMPTY_ARRAY);
  }
private Usage @NotNull [] createUsages()