public static PsiElement @NotNull [] toElements(UsageInfo @NotNull [] usageInfos) {
    return ContainerUtil.map2Array(usageInfos, PsiElement.class, UsageInfo::getElement);
  }
public static PsiElement @NotNull [] toElements(UsageInfo @NotNull [] usageInfos)