private static Analyzer newAnalyzer(String projectDir, List<String> srcpath, List<String> inclpaths) {
        Analyzer idx = new Analyzer();
        idx.addPath(projectDir);
        idx.addPaths(inclpaths);
        idx.analyze(srcpath);
        idx.finish();
        return idx;
    }