static @NotNull ProviderInfo<?> @NotNull [] removeFromArray(@NotNull PsiReferenceProvider provider, @NotNull ProviderInfo<?> @NotNull [] array) {
    int i = ContainerUtil.indexOf(array, trinity -> trinity.provider.equals(provider));
    if (i != -1) {
      return ArrayUtil.remove(array, i, ProviderInfo.ARRAY_FACTORY);
    }
    return array;
  }
static @NotNull ProviderInfo<?> @NotNull [] removeFromArray(@NotNull PsiReferenceProvider provider, @NotNull ProviderInfo<?> @NotNull [] array)