@Override
    public String[] getNames(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.findDeclarations(sdFile));
        }
        
        List<String> names = new ArrayList<>(declarations.size());
        for (SdDeclaration declaration : declarations) {
            names.add(declaration.getName());
        }
        return names.toArray(new String[names.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