@Override
    public @Nullable SearchScope getAdditionalUseScope(@NotNull PsiElement element) {
      SearchScope useScope = element.getUseScope();
      if (useScope instanceof LocalSearchScope) return null;
      return ScratchesSearchScope.getScratchesScope(element.getProject());
    }
@Override
    public @Nullable SearchScope getAdditionalUseScope(@NotNull PsiElement element)