public static MethodExclusionModule forVoidMethods() {
        return new MethodExclusionModule(MethodScope::isVoid);
    }
Factory method: creating a {@link MethodExclusionModule} instance that excludes all methods with a {@code void} return type.

@return created module instance
jsonschema-generator/src/main/java/com/github/victools/jsonschema/generator/impl/module/MethodExclusionModule.java