private <M extends MemberScope<?, ?>> M getMemberWithNameOverride(M member) {
        String propertyNameOverride = member.getContext().performActionOnMember(member,
                this.generatorConfig::resolvePropertyNameOverride, this.generatorConfig::resolvePropertyNameOverride);
        if (propertyNameOverride == null) {
            return member;
        }
        return (M) member.withOverriddenName(propertyNameOverride);
    }
Add the given field or method to this context's list of collected properties.

@param member field/method to add
jsonschema-generator/src/main/java/com/github/victools/jsonschema/generator/impl/MemberCollectionContextImpl.java