@Override
	public boolean equals(Object obj) {
		if (obj instanceof DefaultSchemaContext that) {
			return Objects.equals(this.schemas, that.schemas);
		}
		if (obj instanceof SchemaContext that) {
			return this.schemas.values().equals(that.getAllSchemas());
		}
		return false;
	}
The default implementation of a schema context
Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/model/target/schema/DefaultSchemaContext.java