https://github.com/jenkinsci/jenkins/pull/4482 hides disabled permissions in permission errors from checkPermission.
The same is not true for checkAnyPermission however, it will happily mention permissions that aren't enabled on an instance.