protected static void checkPattern(final String arg) throws IOException {
        var failBuild = new AtomicBoolean(false);
        var pattern = Pattern.compile("public class .+Configuration", Pattern.DOTALL);
        Files.walk(Paths.get(arg))
            .filter(f -> Files.isRegularFile(f) && f.toFile().getName().endsWith("Configuration.java"))
            .forEach(file -> {
//                System.out.println(file.toFile().getName());
                var text = readFile(file);
                if (text.contains("@Configuration") && pattern.matcher(text).find()
                    && !text.contains("@ConditionalOnFeature") && !text.contains("@Deprecated")) {
                    print("- Missing @ConditionalOnFeature in %s%n", file.getFileName().toString());
                    failBuild.set(true);
                }

            });
        if (failBuild.get()) {
            System.exit(1);
        }
    }
This is {@link CheckMissingConditionalOnFeature}.

@author Misagh Moayyed
@since 6.6.0
ci/checks/CheckMissingConditionalOnFeature.java