try {
ParserManager.parse(Collections.singleton(source), new UserTask() {
@Override
public void run(ResultIterator resultIterator) throws Exception {
ScalaRootScope rootScope = ((ScalaParserResult) resultIterator.getParserResult()).rootScope();
if (rootScope == null) {
return;
}
rootScope.visibleDfns(ElementKind.CLASS);
scala.collection.Seq<AstDfn> tmpls = rootScope.visibleDfns(ElementKind.CLASS);
if (!tmpls.isEmpty()) {
scala.collection.Iterator itr = tmpls.iterator();
while (itr.hasNext()) {
AstDfn tmpl = (AstDfn) itr.next();
if (classes[0].length() > 0) {