@Deprecated
    public MethodScope createMethodScope(ResolvedMethod method, ResolvedTypeWithMembers declaringTypeMembers) {
        return this.createMethodScope(method, new MemberScope.DeclarationDetails(method.getDeclaringType(), declaringTypeMembers));
    }
Construct a {@link MethodScope} instance for the given method.

@param method targeted method
@param declaringTypeMembers collection of the declaring type's fields and (other) methods
@return created {@link MethodScope} instance
@deprecated use {@link #createMethodScope(ResolvedMethod, MemberScope.DeclarationDetails)} instead
jsonschema-generator/src/main/java/com/github/victools/jsonschema/generator/TypeContext.java