@Override
	public boolean setArguments(List<Object> arguments) {
        commandsToExecute.clear();

        for (Object object : arguments) {
            if (!(object instanceof JsonObject))return false;

            JsonObject jsonObject = (JsonObject)object;

            if (!jsonObject.has("command") || !jsonObject.get("command").isJsonPrimitive())return false;
            if (!jsonObject.has("arguments") || !jsonObject.get("arguments").isJsonArray())return false;

            var params = new ExecuteCommandParams(jsonObject.get("command").getAsString(), new ArrayList<Object>(((JsonArray)jsonObject.get("arguments")).asList()));
            Optional<SchemaCommand> command = CommandRegistry.getCommand(params);
            if (command.isEmpty()) return false;
            commandsToExecute.add(command.get());
        }
        return true;
	}
CommandList
Represents a chain of commands to be executed one after another.
Currently their return values are ignored.
integration/schema-language-server/language-server/src/main/java/ai/vespa/schemals/lsp/common/command/commandtypes/CommandList.java