@Override
  public @Nullable GlobalSearchScope getScopeWithCodeReferences(@NotNull PsiElement element) {
    if (!isServiceEnabledFor(element)) {
      return null;
    }

    try {
      return CachedValuesManager.getCachedValue(element, () -> {
        return CachedValueProvider.Result.create(
          buildScopeWithReferences(getReferentFiles(element), element),
          PsiModificationTracker.MODIFICATION_COUNT,
          this);
      });
    }
    catch (RuntimeException e1) {
      return onException(e1, "scope without code references");
    }
  }
@Override
  public @Nullable GlobalSearchScope getScopeWithCodeReferences(@NotNull PsiElement element)