public Optional<Schema> parent() {
        if (parent != null) return parent;
        Optional<SdSchemaDefinition> schemaDefinition = PsiTreeUtil.collectElementsOfType(definition, SdSchemaDefinition.class).stream().findFirst();
        if (schemaDefinition.isEmpty()) return Optional.empty(); // No valid schema definition in schema file
        return parent = AST.inherits(schemaDefinition.get())
                           .stream()
                           .findFirst() // Only one schema can be inherited; ignore any following
                           .map(inheritedNode -> fromProjectFile(definition.getProject(), path().append(inheritedNode.getText() + ".sd")));
    }
The path of the location of this schema from the project root.
integration/intellij/src/main/java/ai/vespa/intellij/schema/model/Schema.java