@Override
    public ResolveResult[] multiResolve(boolean incompleteCode) {
        
        PsiElement file = myElement.getContainingFile();
        
        final List<SdDeclaration> declarations = SdUtil.findDeclarationsByScope(file, myElement, elementName);
        
        List<ResolveResult> results = new ArrayList<>();
        
        for (SdDeclaration declaration : declarations) {
            results.add(new PsiElementResolveResult(declaration));
        }
        return results.toArray(new ResolveResult[results.size()]);
    }
A reference to a Psi Element.

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