private MethodScope getMethod(ResolvedMethod[] methods, String methodName) {
        return Stream.of(methods)
                .filter(method -> methodName.equals(method.getName()))
                .findAny()
                .map(method -> this.context.createMethodScope(method, this.declarationDetails))
                .get();
    }
Helper class for constructing {@link FieldScope} and {@link MethodScope} instances in tests.
jsonschema-module-jackson/src/test/java/com/github/victools/jsonschema/module/jackson/TestType.java