@SuppressWarnings("checkstyle:FinalParameters")
    private static @Nullable List<String> validateName(
            final @NonNull String name,
            final boolean alias,
            @Nullable List<String> errors
    ) {
        final int found = name.codePoints().filter(Character::isWhitespace).findFirst().orElse(Integer.MIN_VALUE);
        if (found != Integer.MIN_VALUE) {
            if (errors == null) {
                errors = new ArrayList<>();
            }
            errors.add(String.format("%s '%s' is invalid: contains whitespace", alias ? "Alias" : "Name", name));
        }
        return errors;
    }
Insert a new alias

@param alias New alias
cloud-core/src/main/java/org/incendo/cloud/parser/standard/LiteralParser.java