protected void processImportsAndDependencies(DynamicSchema.Builder schema, T source,
                                               DynamicSchemaConverter<T> converter,
                                               Map<String, ProtoFileElement> dependencies) {
        // Process regular imports
        for (String ref : converter.getImports(source)) {
            ProtoFileElement dep = dependencies.get(ref) == null ? ProtoConstants.BASE_DEPENDENCIES.get(ref) : dependencies.get(ref);
            if (dep != null) {
                schema.addDependency(ref);
                try {
                    schema.addSchema(convert(ref, (T) dep, dependencies));
                } catch (Descriptors.DescriptorValidationException e) {
                    throw new IllegalStateException("Failed to process import: " + ref, e);
                }
            }
        }

        // Process public imports
        for (String ref : converter.getPublicImports(source)) {
            ProtoFileElement dep = dependencies.get(ref) == null ? ProtoConstants.BASE_DEPENDENCIES.get(ref) : dependencies.get(ref);
            if (dep != null) {
                schema.addPublicDependency(ref);
                try {
                    schema.addSchema(convert(ref, (T) dep, dependencies));
                } catch (Descriptors.DescriptorValidationException e) {
                    throw new IllegalStateException("Failed to process public import: " + ref, e);
                }
            }
        }
    }
Processes imports and dependencies, adding them to the schema builder.

@param schema The schema builder
@param source The source object
@param converter The converter instance
@param dependencies Map of dependencies
core/src/main/java/kafka/automq/table/deserializer/proto/parse/template/DynamicSchemaTemplate.java