protected static void checkPattern(final String arg) throws IOException {
        var failBuild = new AtomicBoolean(false);
        Files.walk(Paths.get(arg))
            .filter(file -> Files.isRegularFile(file) && file.toFile().getName().endsWith("Utils.java"))
            .forEach(file -> {
                var text = readFile(file);
                if (!text.contains("@UtilityClass")) {
                    print("%s is a utility class and yet is missing the @UtilityClass annotation", file);
                    failBuild.set(true);
                }
            });
        if (failBuild.get()) {
            System.exit(1);
        }
    }
This is {@link CheckMissingUtilityClassAnnotation}.

@author Misagh Moayyed
@since 6.3.0
ci/checks/CheckMissingUtilityClassAnnotation.java