Basically need this same commit that you did for IntelliJ plugin, but for the library. https://github.com/uwolfer/gerrit-intellij-plugin/commit/b4825726f1e2e8a24278f1428072c59fc5e3d62b