Yeah I know it’s deprecated but they haven’t provided a method that takes a ProjectPermissionKey.
Don’t use ADMINISTER because it’s not a project permission, use PROJECT_ADMIN if that’s what you want.
Have a look at the source - com.atlassian.jira.permission.ProjectPermissions#systemProjectPermissionKeyByShortName