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