Using bge package in an IDE

I am trying to edit some scripts to use in my bge based project. The editor in blender is not very useful, so naturally I will use something more powerful (PyCharm). I’m trying to install the packages locally so I can use the autocomplete features. I’ve been trying to find a solution for a few hours and I have found some scripts, such as this stack exchange posting:

Which seem to work. The problem is, these scripts however neglect bge. I’ve tried tinkering them myself, but unsuccessfully. Does somebody have a working solution for this? I am running on Windows, if it’s important.