@Nullable
  @Override
  public SearchScope getRestrictedUseScope(@NotNull PsiElement element) {
    CompilerReferenceService service = CompilerReferenceService.getInstanceIfEnabled(element.getProject());
    return service == null ? null : service.getScopeWithCodeReferences(element);
  }
@Nullable
  @Override
  public SearchScope getRestrictedUseScope(@NotNull PsiElement element)