Can use `invoke.getUnchecked()` to avoid catch block.
Also, `invoke` is a strange variable name (but that's what it was called before so not saying you have to change it here).