public String getName() {
        return Optional.ofNullable(this.getOverriddenName())
                .orElseGet(this::getDeclaredName);
    }
Returns name of this member.

@return method/field name
@see #getDeclaredName()
@see #getOverriddenName()
jsonschema-generator/src/main/java/com/github/victools/jsonschema/generator/MemberScope.java