List<LintWarning> warningList = SourceMetricFinder.computeLintWarnings(moduleDefn, moduleTypeInfo, new AcceptAllQualifiedNamesFilter(), false, true, true, false, false, false);
LintWarning[] veryLintyWarnings = new LintWarning[3];
int i = 0;
for(Iterator<LintWarning> it = warningList.iterator(); it.hasNext() && i < 3;) {
LintWarning warning = it.next();
if(warning.getFunctionName().getUnqualifiedName().equals("veryLintyFunction")) {
veryLintyWarnings[i] = warning;
i++;
}
}