public static PsiReference @NotNull [] getReferencesFromProviders(@NotNull PsiElement context, @NotNull PsiReferenceService.Hints hints) {
    ProgressIndicatorProvider.checkCanceled();

    if (hints == PsiReferenceService.Hints.NO_HINTS) {
      return CachedValuesManager.getCachedValue(context, () -> {
        try (AccessToken ignored = CONTRIBUTING_REFERENCES.runPass()) {
          return Result.create(getInstance().doGetReferencesFromProviders(context, PsiReferenceService.Hints.NO_HINTS),
                               PsiModificationTracker.MODIFICATION_COUNT);
        }
      }).clone();
    }

    try (AccessToken ignored = CONTRIBUTING_REFERENCES.runPass()) {
      return getInstance().doGetReferencesFromProviders(context, hints);
    }
  }
public static PsiReference @NotNull [] getReferencesFromProviders(@NotNull PsiElement context, @NotNull PsiReferenceService.Hints hints)