For Java code, it totally depends on what you're trying to do, but github co is kinda the go-to for most devs, super helpful with autocompletion and even entire functions. You could also totally try amz codewhisper if you're in the swd ecosystem for a slightly different vibe