Add `requiresCode` static method.