@Override
    public void updateFileContent(String content) {
        this.content = content;

        this.schemaIndex.clearDocument(this.fileURI);

        var result = parseContent(getParseContext());

        diagnosticsHandler.publishDiagnostics(this.fileURI, result.diagnostics());
        if (result.CST().isPresent()) {
            this.CST = result.CST().get();
            lexer.setCST(CST);
        }
    }
RankProfileDocumnet parses and represents .profile files
integration/schema-language-server/language-server/src/main/java/ai/vespa/schemals/schemadocument/RankProfileDocument.java