@Override
    public NavigationItem[] getItemsByName(String name, String pattern, Project project, boolean includeNonProjectItems) {
        Collection<VirtualFile> virtualFiles = FileTypeIndex.getFiles(SdFileType.INSTANCE, GlobalSearchScope.allScope(project));
        
        List<SdDeclaration> declarations = new ArrayList<>();
        
        for (VirtualFile file : virtualFiles) {
            SdFile sdFile = (SdFile) PsiManager.getInstance(project).findFile(file);
            declarations.addAll(SdUtil.findDeclarationsByName(sdFile, name));
        }
        
        return declarations.toArray(new NavigationItem[declarations.size()]);
    }
This class is used for the extension (in plugin.xml) to enable the "Go To Symbol" feature.

@author Shahar Ariel
integration/intellij/src/main/java/ai/vespa/intellij/schema/SdChooseByNameContributor.java