public SchemaGeneratorConfigPart<M> withDependentRequiresResolver(ConfigFunction<M, List<String>> resolver) {
        this.dependentRequiresResolvers.add(resolver);
        return this;
    }
Setter for resolver, that collects the names of other properties that are required depending on the targeted one.
<br>
Beware that the output of all configured resolvers are combined, i.e., not just considering the first that returns a value.

@param resolver how to determine which other properties should have a required value if the given one is present.
@return this config part (for chaining)
jsonschema-generator/src/main/java/com/github/victools/jsonschema/generator/SchemaGeneratorConfigPart.java