public static @Nullable PermissionDefault fromPermission(@Nullable Permission permission) {
        if (permission == null) {
            return null;
        }
        return getByName(permission.getDefault());
    }
Looks up a PermissionDefault by name

@param name Name of the default
@return Specified value, or null if not found
nukkit/src/main/java/me/lucko/luckperms/nukkit/inject/PermissionDefault.java