public List<String> getDefinedSchemas() {
        Object getDefinedSchemasResult = commandService.executeClientCommand(
            new ExecuteCommandParams("vespaSchemaLS.commands.schema.getDefinedSchemas", List.of())
        ).join();

        if (getDefinedSchemasResult == null) return List.of();

        try {
            String json = gson.toJson(getDefinedSchemasResult);
            Type listOfStringType = new TypeToken<List<String>>() {}.getType();
            return gson.fromJson(json, listOfStringType);
        } catch (Exception ex) {
            logger.severe("Error when parsing json: " + ex.getMessage());
            return List.of();
        }
    }
Sends the FIND_SCHEMA_DEFINITION request to the Schema language server.
integration/schema-language-server/lemminx-vespa/src/main/java/ai/vespa/lemminx/command/SchemaLSCommands.java