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

@param method targeted method
@param declarationDetails context of declaration
@return created {@link MethodScope} instance

@since 4.33.0
jsonschema-generator/src/main/java/com/github/victools/jsonschema/generator/TypeContext.java