public Builder target(PermissionHolder target) {
            if (target.getType() == HolderType.USER) {
                targetName(((User) target).getUsername().orElse("null"));
                target(((User) target).getUniqueId());
                targetType(Target.Type.USER);
            } else if (target.getType() == HolderType.GROUP) {
                targetName(((Group) target).getName());
                targetType(Target.Type.GROUP);
            }
            return this;
        }
Creates a new log entry builder

@return a new builder
common/src/main/java/me/lucko/luckperms/common/actionlog/LoggedAction.java