@Override
    public FieldScope withOverriddenName(String overriddenName) {
        OverrideDetails overrideDetails = new OverrideDetails(this.getOverriddenType(), overriddenName, this.getFakeContainerItemIndex());
        return new FieldScope(this.getMember(), this.getDeclarationDetails(), overrideDetails, this.getContext());
    }
Constructor.

@param field targeted field
@param declarationDetails basic details regarding the declaration context
@param overrideDetails augmenting details (e.g., overridden type, name, or container item index)
@param context the overall type resolution context
jsonschema-generator/src/main/java/com/github/victools/jsonschema/generator/FieldScope.java