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

    try {
      return CachedValuesManager.getCachedValue(aClass, () -> {
        return CachedValueProvider.Result.create(
          buildScopeWithReferences(getReferentFileIdsViaImplicitToString(aClass), aClass),
          PsiModificationTracker.MODIFICATION_COUNT,
          this);
      });
    }
    catch (RuntimeException e) {
      return onException(e, "scope without implicit toString references");
    }
  }
@Override
  public @Nullable GlobalSearchScope getScopeWithImplicitToStringCodeReferences(@NotNull PsiElement aClass)