class KtlintAnalyzer implements Analyzer<List<LocatedLintError>> {

    public KtlintResult analyze() {
        final ErrorListener listener = new ErrorListener();
        for (final File src : config.getSources(KOTLIN)) {
            try {
                listener.currentFile = src;
                KtLint.INSTANCE.lint(new KtLint.Params(
                        src.getAbsolutePath(), readFile(src), findRuleSets(),
                        emptyMap(), listener, false, null, false));
            } catch (IOException e) {
                LOG.error("Could not read file {}", src, e);
            }
        }
        return createResult(listener);
    }

    public  KtlintAnalyzer(AnalyzerConfig config, KtlintCollector collector);
    private  KtlintAnalyzer(AnalyzerConfig config, KtlintCollector collector, List<RuleSet> ruleSets);

}