One way is to use a method that always returns null but suppresses IDEA's warnings, like this: method, usage
The newer way is to use the DeferredRegister system that was introduced relatively recently. I've started updating to this, but it doesn't look like I've pushed any of my changes to GitHub.