public static Predicate<String> createClassOrPackageNameFilter(String input, boolean forPackage) {
        return (className) -> GlobHandler.createClassOrPackageNamePattern(input, forPackage).matcher(className).matches();
    }
Generate predicate to check the given input for filtering classes on the classpath.

@param input either absolute value (with "." as package separator) or glob pattern (with "/" as package separator)
@param forPackage whether the given input identifies a package
@return predicate to filter classes on classpath by
jsonschema-maven-plugin/src/main/java/com/github/victools/jsonschema/plugin/maven/GlobHandler.java