private static boolean isHidden(Path path) {
        return IntStream.range(0, path.getNameCount()).mapToObj(path::getName).anyMatch(subPath -> subPath.toString()
                .startsWith("."));
    }
Recursive search for all {@link #YAML_FILES_PATTERN} in provided base path

@param path base path to start (can be file or directory)
@return list of all paths matching pattern. Only base file itself if it is a file matching pattern
plugin/src/main/java/io/jenkins/plugins/casc/ConfigurationAsCode.java