} else {
if (!hasMainClassFromTest) {
if (mainClasses.size() == 1) {
final AstDfn next = mainClasses.iterator().next();
//Just one main class, resolve from the symbol
clazz = next.qualifiedName();
} else {
//Several main classes, let the user choose
clazz = showMainClassWarning(file, mainClasses);
if (clazz == null) {
return null;