private static @Nullable Object getSlowData(@NotNull String dataId, @NotNull Map<Integer, Usage> usages) {
    if (PlatformCoreDataKeys.PSI_ELEMENT_ARRAY.is(dataId)) {
      return usages.values().stream()
        .filter(usage -> usage instanceof UsageInfoAdapter)
        .flatMap(usage -> Arrays.stream(((UsageInfoAdapter)usage).getMergedInfos()))
        .map(info -> info.getElement())
        .filter(Objects::nonNull)
        .toArray(PsiElement[]::new);
    }
    return null;
  }
private static @Nullable Object getSlowData(@NotNull String dataId, @NotNull Map<Integer, Usage> usages)