code: public static final SymbolReference<ResolvedValueDeclaration> solveWith(SymbolDeclarator symbolDeclarator, String name) {
          for (ResolvedValueDeclaration decl : symbolDeclarator.getSymbolDeclarations()) {
              if (decl.getName().equals(name)) {
                  return SymbolReference.solved(decl);
              }
          }
          return SymbolReference.unsolved(ResolvedValueDeclaration.class);
      }
docs: /