The auto complete provided by your lsp server to your editor does a much better job of this than LLM's do, in my opinion.

My LLM-powered autocomplete can guess complete functions within 80-95% correctness.

No LSP server autocomplete has managed to do that.